Heroku app deployment procedure
Process for deploying app on heroku
- sudo gem install heroku
- heroku create app_name
- git init
- git add ( add the files present in the app, see the files by ls command)
- git commit -m “commit the app”
-
cd ~/.ssh (see that ssh directory exists or not)
if exists then $ ls $ config id_rsa.pub $ id_rsa known_hosts $ mkdir key_backup $ cp id_rsa* key_backup $ rm id_rsa*-- if "not exists" then $ ssh-keygen -t rsa -C "your email"
- heroku create
- heroku keys:add
- git push heroku master
- heroku rake db:migrate.
To see the error in opening the site in the browser
heroku logs --app app_name (run that command on the terminal)
if git push heroku
master gives following error
------Agent admitted failure to sign using the key.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
then run this on prompt
ssh-add ~/.ssh/id_rsa