Heroku Getting Started - RichardForshaw/dev-tools-blog GitHub Wiki
Getting SetUp with Heroku
New Project
If you want a full blow-by-blow for a new project then visit Matt's Page.
Joining an existing project
First you need to make sure you have the Heroku Toolbelt on your platform. This requires Ruby, so for Ubuntu:
sudo apt-get ruby
wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
We assume that you have already cloned the github account. If not:
git clone ssh:url-of-project
Then tell Heroku that you want to add a remote for your repo:
heroku git:remote -a <heroku-app-name> -r <remote-repo-identifier>
(Note this essentially is the same as doing the following, where the remote-repo-identifier is heroku-test:) Don't use SSH, use HTTPS instead as Heroku doesn't allow for SSH
git remote add heroku-test https://git.heroku.com/{PROJECT}-test.git
Now, if you wish to push the master branch to the test server, run:
git push heroku-test master
and likewise for the heroku production server.
More verbose information is here.