HEROKU - cannot run git push heroku master
Add this to your Gemfile,
group :production do
gem 'pg'
end
group :development, :test do
gem 'sqlite3'
end
then do a bundle
then repush to heroku. You cannot use sqlite3 on Heroku - which is the cause of the error.
Problems with Git Push Heroku Master - No Longer Working
SOLUTION:
$ heroku git:remote -a <app-name>
...obviously is the actual name of my app.
I missed the announcement of this last year? I'm surprised I was able to push to heroku as long as I did.
From Heroku help:
Could you please switch your heroku remote to the HTTPS URL?
As has been announced last year, the platform no longer accepts git pushes at an SSH remote. Could you please run commands like below to switch the heroku remote to the HTTPS URL?
$ heroku git:remote -a <app-name>
Regards,
Daigo
Then I should see:
$ git remote -v | grep heroku
heroku https://git.heroku.com/<app-name>.git (fetch)
heroku https://git.heroku.com/<app-name>.git (push)
again, <app-name>
is the actual name of my app.
Thanks for looking
Git Push Heroku Master - Cannot login to heroku - Cloud9 IDE
Take a look at this & this.
In the C9 console run: rm -rf ~/.local/share/heroku
Then run heroku login
and log back in. Good to go!
From Heroku docs:
If you continue to have problems and the CLI is up to date, or if
updating fails for other reasons, you can reset the CLI by deleting
its user directories. These directories are replaced automatically and
you will not be logged out, but you will lose any installed plugins
Heroku push failed when i run git push heroku master command
By seeing error, I can say you did not run assets:precompile
task locally.
Now, before using git push heroku master command, you just follow following steps:
RAILS_ENV=production bundle exec rake assets:precompile
git add public/assets
git commit -m "vendor compiled assets"
After above steps, use git push heroku master command, this will helpful to deploy application to Heroku.
You can read about Heroku from this link Rails Asset Pipeline on Heroku Cedar.
I hope this will help you.
error on git push heroku master
I contacted the heroku support, and they told me kindly what I was doing something wrong.
It seems that my project folder was 1,2GB, and with the .gitignore it was about 550MB. And in a free account I only can push 500MB maximum.
I looked folder by folder and file by file how many space are they using. And surprisingly it was about 50MB.
The other 500MB to the 550MB were hidden files inside the project which I didn't know anything. Maybe git files, I don't know.
So I copied all the visible files and folders to a new folder, I made a new .gitignore, a new git init, and a new heroku create. Now the main folder was only about 150MB, and when I wanted to push the project to heroku it was only 49MB.
So if you have the same problem I had check the weight of your files, maybe you have big hidden files. And it solved the problem to me.
`git push heroku master` returns error
I am pretty sure that I was affected by deployment failures occurring on Heroku itself and it was not anything about what I did which caused this error.
When something goes wrong I tend to think that I am doing something wrong but sometimes it may be that something wrong is occurring at the other side of my computer.
Cannot 'git push' to Heroku
Looks like it might be an issue with your security certificate. Heroku doesn't support ECDSA key, per their documentation. I would create a fresh RSA SSH key that you use for heroku and only for heroku, send that new public key to them, then setup a ssh config file to serve that key when SSH reaches out to heroku.com.
This is what I have in my ~/.ssh/config
file on my laptop:
Host heroku.com
IdentityFile /Users/danielrice/.ssh/identity.heroku.danielricecodes
IdentitiesOnly yes
Related Topics
Ruby: What Does 'Require: False' in Gemfile Mean
Why Doesn't Ruby Support Method Overloading
How to Set Tls Context Options in Ruby (Like Openssl::Ssl::Ssl_Op_No_Sslv2)
What Are All the Common Ways to Read a File in Ruby
What's the Difference Between Uri.Escape and Cgi.Escape
How to Create Multiple Submit Buttons For the Same Form in Rails
No Increment Operator (++) in Ruby
How to Install Sqlite3 For Ruby on Windows
Difference Between Collection Route and Member Route in Ruby on Rails
What Are the Ruby Gotchas a Newbie Should Be Warned About
How to Convert a String or Integer to Binary in Ruby
What Does the Question Mark At the End of a Method Name Mean in Ruby
How to Seed a Database in Rails
Open an Io Stream from a Local File or Url
Get List of a Class' Instance Methods
Ruby 2.0 Rails Gem Install Error "Cannot Load Such File - Openssl"