heroku deploy procedure
Just keep record of the procedure to deploy heroku install heroku heroku gem(deprecated) or toolbelt
sudo aptitude install heroku-toolbelt
#or for ubuntu
wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
login with credentials
heroku login
#Enter your Heroku credentials.
#Email: adam@example.com
#Password:
#Could not find an existing public key.
#Would you like to generate one? [Yn]
#Generating new SSH public key.
#Uploading ssh public key /Users/adam/.ssh/id_rsa.pub
create app
heroku create
heroku rename
heroku help
add to git and make a commit
push and deploy
#change Gemfile put sqlite3 to development
#add pg to production
#if you change Gemfile you need to git commit again otherwise heroku will not know
git push heroku master
if you got error
Permission denied (publickey). fatal: The remote end hung up unexpectedly
try and reference add keys to heroku
heroku keys:add ~/.ssh/id_rsa.pub
ssh-keygen -t rsa -f id_rsa
git clone git@heroku.com:stark-dawn-1234.git -o heroku
heroku keys:clear
heroku keys:add
migration and open
heroku run rake db:migrate
heroku run console
heroku logs
heroku open