Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Home

loe edited this page · 2 revisions
Clone this wiki locally

There are two types of rackup files, config.ru and .ru.

Run the standard config.ru file with:

$ rackup config.ru -p 3000

The run command will instance eval inside Rack. The other option is to capture the lambda in a constant which Rack can hold on to and call.

$ rackup app.rb -p 3000

The are mostly equivalent, config.ru is the most popular method.

Sinatra will handle auto-reloading of code, however you may use shotgun (gem install shotgun) for rack apps and sinatra as well.

Something went wrong with that request. Please try again.