March 05, 2009 by Adam Wiggins
That’s why we’re so pleased to announce the ability to deploy any Rack-compatible web app to Heroku.
Assuming you have a Heroku account, here’s how you can deploy a Sinatra app in about 30 seconds. Make a new directory, and inside create hello.rb:
require 'rubygems' require 'sinatra' get '/' do "Hello from Sinatra on Heroku!" end
Then create a config.ru file in the same directory (the location follows the Passenger convention):
require './hello' run Sinatra::Application
Now let’s put our...Read more →