Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
48 lines (33 sloc) 1.45 KB

Here is a sample/template sinatra application ready for deployment to Heroku.

NOTE This is for heroku.com and not herokugarden.com

  • Create an acount in seconds at Heroku.
  • Install the gem sudo gem install heroku.
  • If you do not have an SSH key you'll need to generate one and tell Heroku about it
  • Clone this repo git clone git://github.com/sinatra/heroku-sinatra-app [appname]
  • cd /path/to/project
  • heroku create [optional-app-name] (You can rename your app with heroku rename)
  • git push heroku master

NOTES

The small amount of code is heavily commented. If you have questions or comments please use the channels provided by the Sinatra community as we at Heroku are heavily involved in Sinatra. Please use the Heroku mailing list if you have non Sinatra questions.

See these guidelines for contributing or bugs.

Happy Development and Deploying!

Sincerely, The Heroku Team

appendix NOTES

need bundle install to deploy on Heroku.

  1. write Gemfile
  2. do "bundle install"
  3. do "bundle lock"
  4. do "git add ."
  5. do "git commit -m 'hogehoge'"

With above sequence, it's the time to deploy at Heroku

$ git push heroku master

have fun!!