How to use Heroku Toolbelt on Gentoo/Praxis Linux

assets.heroku.com.s3.amazonaws.com/heroku-client/heroku-client.tgz

Requirements

emerge -av dev-lang/ruby dev-vcs/git
[ebuild   R    ] dev-lang/ruby-1.9.3_p194-r1:1.9  USE="berkdb -debug -doc -examples gdbm ipv6 ncurses rdoc readline -rubytests -socks5 ssl -tk -xemacs yaml"

Using the Heroku Installer

# wget https://toolbelt.heroku.com/install-ubuntu.sh

Heroku from Tarball

This is the preferred method

# cd /opt
# wget http://assets.heroku.com/heroku-client/heroku-client.tgz
# tar -zxf heroku-client.tgz
# echo 'PATH="/opt/heroku-client/bin:$PATH"' >> /etc/env.d/99local
# env-update

Heroku from Github

# cd /opt
# git clone https://github.com/heroku/heroku.git
# echo 'PATH="/opt/heroku-client/bin:$PATH"' >> /etc/env.d/99local
# env-update

Connecting to Heroku

Once installed and properly in the PATH simply run the heroku command and login

 ~/app-dir $ heroku login
Enter your Heroku credentials.
Email: @edoceo.com
Password (typing will be hidden): 
Found the following SSH public keys:
1) id_rsa.pub
2) legacy.id_rsa.pub
3) 2006_rsa.pub
Which would you like to use with your Heroku account? 1 
Uploading SSH public key ~/.ssh/id_rsa.pub... done
Authentication successful.

Now we're connected, lets make a brand new project.

Creating a Project

Trivial! heroku create inside your existing Git directory.

$ cd ~/my-heroku-app
$ git init
$ git commit -m'First Commit'
$ heroku create
Creating some-name-1234... done, stack is cedar
http://some-name-1234.herokuapp.com/ | git@heroku.com:some-name-1234.git
$ git remote -v

Or, if you have an existing git repo that you want to add to that app

cd ~ /my-heroku-app
heroku git:remote -a falling-wind-1624

Deploying

git push heroku master

Push alternate local branch to Heroku Master

git push heroku local_branch:master