Sinatra

From DreamHost

Jump to: navigation, search


Sinatra [1] is a DSL for quickly creating web-applications in Ruby with minimal effort

Since DH supports Passenger, which in turn supports Rack-based ruby applications, DH does indeed support Sinatra.

The Sinatra Book has an excellent section on how to deploy your Sinatra application to Dreamhost [2]

If you encounter this error after following the instructions in the book,

 can’t activate rack (>= 0.9.1, < 1.0, runtime), already activated rack-0.4.0

then add the following two lines to the beginning of your config.ru.

 require '/home/USERNAME/.gem/ruby/1.8/gems/rack-<VERSION-OF-RACK-GEM-YOU-HAVE-INSTALLELD>/lib/rack.rb'
 require '/home/USERNAME/.gem/ruby/1.8/gems/sinatra-<VERSION-OF-SINATRA-GEM-YOU-HAVE-INSTALLELD>/lib/sinatra.rb'
Personal tools