Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Deployment to Heroku

Resource: https://devcenter.heroku.com/articles/rack

Prepare Sinatra project for Heroku

  • gem install heroku

  • heroku create

Push app to Heroku

  • git push heroku master

  • Potential Error: Permission denied public keys

  • Why: Heroku needs to have you public id_rsa key to interact with you GitHub repository on your behalf.

  • Solution: heroku keys:add ~/.ssh/id_rsa.pub This command pushes the public key up to Heroku so it may interact with you repository.

Useful Heroku Information and Tips

  • heroku open opens your heroku app your default browser

  • heroku logs will display the log information to help debug errors

  • heroku ps:scale web=1 may be required to scale the application's Heroku web workers, or processes, from zero to one