I solved my problem while writing this post, but I thought it might be good information for other noobs like me :)
To solve the problem below, edit the following .git / configuration file
There is a section here that looks like
[remote "heroku"] url = git@heroku.com :adjective-noun-1234.git fetch = +refs/heads/*:refs/remotes/heroku/*
This is what git is trying to push. Just change the line
url = git@heroku.com :adjective-noun-1234.git
for any new Heroku project you created. git can now click on Heroku again.
I got my second Rails application operational and I want to deploy it. Therefore, I followed all the steps for deploying Heroku in the Ruby on Rails tutorial (I had the deployment working for the sample application from the book) using:
heroku create
Then i click my project
git push heroku master
The project does not work, although I cannot find errors in the Heroku logs, all I get is:
We are sorry, but something went wrong. We have been notified of this issue and we will review it shortly.
So, I looked through the Heroku support section and found the official Rails 3.0 / 3.1 deployment guide:
http://devcenter.heroku.com/articles/rails3
http://devcenter.heroku.com/articles/rails31_heroku_cedar
I went to Heroku Web Frontend> General Information> Destroy App because I wanted to continue my efforts from scratch.
Following the guide, I created a Heroku project for cedar cedar:
heroku create
And click on Heroku using
git push heroku master
PROBLEM: for some reason, git is still trying to push through the old Heroku project !!!
leads to an error
fatal: The remote end hung up unexpectedly