heroku

renamed heroku app from website, now it's not found

独自空忆成欢 提交于 2019-12-29 10:04:24
问题 After renaming my heroku app from the heroku website, whenever I cd to it's directory in a terminal and run any heroku command, I get App not found . Does anybody know of a way to remedy this? 回答1: Try to update the git remote for the app: git remote rm heroku git remote add heroku git@heroku.com:yourappname.git 回答2: The Answer by James Ward is also correct, alternatively try doing this: 1). open a terminal 2). Go to your_app_directory/.git/config 3). Once you open the config file then edit

Make Heroku run non-master Git branch

懵懂的女人 提交于 2019-12-29 10:04:05
问题 I have a project hosted on Heroku and it's gotten to the point where I want to make an alternate test server (so I can test Heroku workers without messing up production). I have already set up my main Heroku remote running my trunk and a Heroku-dev remote on which I wish to run an alternate branch. My problem is that since my alternate branch isn't master, Heroku won't build it. $ git push heroku-dev test counting objects ... ... Pushed to non-master branch, skipping build. To git@heroku.com

Rails direct to S3 upload using aws-sdk gem and jQuery-File-Upload on heroku

 ̄綄美尐妖づ 提交于 2019-12-29 08:42:07
问题 I'm trying to achieve direct to Amazon S3 upload in Rails using jQuery-File-Upload and the aws-sdk gem, and following heroku's direct to S3 upload instructions. This is the upload form produced in the html: <form id="pic-upload" class="directUpload" data-form-data="{ "key":"uploads/59c99e44-6bf2-4937-9680-02c839244b33/${filename}", "success_action_status":"201", "acl":"public-read", "policy":"eyJle...In1dfQ==", "x-amz-credential":"AKIAJCOB5HQVW5IUPYGQ/20160101/us-east-1/s3/aws4_request", "x

Updated CSS Stylesheet not loaded following deployment to Heroku?

偶尔善良 提交于 2019-12-29 07:16:10
问题 This has been a problem for me for a while now, but I still can't figure out how the asset pipeline works in Rails 4. I finally learned how to pre-compile assets, but once again after deployment, my CSS Stylesheet isn't getting updated. I confirmed this by going to Developer Tools and viewing the source. It looks different from my CSS files. My guess is the problem lies in my production.rb file. Production.rb Games::Application.configure do config.cache_classes = true config.eager_load = true

Rails Assets Precompile just not working

对着背影说爱祢 提交于 2019-12-29 06:46:29
问题 I've pushed a Rails app to Heroku and keep on running into the following problem: I'll save changes to my main css.scss file (in assets/stylesheets) or to images in assets/images, push to git, push that to heroku, and reload the page, only to find out that these assets haven't been loaded at all. This was also a slight problem on the local server, but entering: rake assets:precompile and reloading the local server usually worked, whereas doing heroku run rake assets:precompile and then re

Can't heroku run rake db migrate through my app

∥☆過路亽.° 提交于 2019-12-29 06:43:24
问题 it is my first time to encounter such error(s): Running `rake db:migrate` attached to terminal... up, run.8524 ! Heroku client internal error. ! Search for help at: https://help.heroku.com ! Or report a bug at: https://github.com/heroku/heroku/issues/new Error: Operation timed out - connect(2) (Errno::ETIMEDOUT) Backtrace: /usr/local/heroku/lib/heroku/client/rendezvous.rb:39:in `initialize' /usr/local/heroku/lib/heroku/client/rendezvous.rb:39:in `open' /usr/local/heroku/lib/heroku/client

fatal: Not a git repository (or any of the parent directories): .git

别来无恙 提交于 2019-12-29 06:37:06
问题 I got the following when I try to git push to heroku fatal: Not a git repository (or any of the parent directories): .git I try to follow ruby on rail tutorial book. I think I installed the client heroku package(by downloading from heroku website and follow their instruction to install, GUI format installation). So my client side heroku should be ok (I am new to programming , so not sure if saying by this term is correct or not). Then I open a new terminal and key in git push heroku master I

On Heroku, Cedar, with Unicorn: Getting ActiveRecord::StatementInvalid: PGError: SSL SYSCALL error: EOF detected

为君一笑 提交于 2019-12-29 06:14:43
问题 Heroku support says this has to do with their version of libssl on shared databases, but we've encountered it on a project that's on a dedicated database, too. Basically this error happens every so often (closer to just after a deploy) on every project we've moved to the new Cedar stack with Unicorn configured to 3 workers: Error Message: ActiveRecord::StatementInvalid: PGError: SSL SYSCALL error: EOF detected : SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull

Detected sqlite3 gem which is not supported on Heroku

丶灬走出姿态 提交于 2019-12-29 05:21:06
问题 I'm trying to push my rails app to Heroku, and I keep getting the following error: An error occurred while installing sqlite3 (1.3.8), and Bundler cannot continue. Make sure that `gem install sqlite3 -v '1.3.8'` succeeds before bundling. ! ! Failed to install gems via Bundler. ! ! Detected sqlite3 gem which is not supported on Heroku. ! https://devcenter.heroku.com/articles/sqlite3 ! ! Push rejected, failed to compile Ruby app Here is what my gemfile looks like: group :devlopment, :test do

What is the reason for “Procfile declares types -> (none)” in Heroku?

假装没事ソ 提交于 2019-12-29 05:13:24
问题 I am trying to deploy a test app to Heroku --stack cedar but every time I do my Procfile is being ignored. It should be saying this: Procfile declares types -> web But says this Procfile declares types -> (none) Because of this problem it of course won't load on the heroku platform when I navigate the URL. Aside from this test (A) I have an IDENTICAL project (B) in another folder which DOES work. I am so utterly confused as to why (A) doesn't that I'm coming here to ask now. A couple other