Sunday, July 18, 2010

Heroku Tips

Following are the few points which might come helpful when installing and running heroku for the first time

1) Installed the heroku gem. Got stuckup with the following error when trying a "git push heroku master"

>> fatal: 'heroku' does not appear to be a git repository
>> fatal: The remote end hung up unexpectedly

The following worked for me:

If you are in the rails directory type:
git remote -v

That will say where you are hooked up

Hopefully you will see an origin or heroku

If so, try again

If not:
Find out your git url:
heroku list
heroku info --app

Find the git: url

git remote add heroku

But, incase you see all the links and still unable to push then add the following to .git/config file

[remote "heroku"]

url = name_.git

fetch = +refs/heads/*:refs/remotes/heroku/*

(Replace the underscored variables with the values for your setup, of course.)

No comments:

Post a Comment