jump to navigation

Running Sinatra with Phusion Passenger April 19, 2009

Posted by John Dewey in Passenger, Rack, Ruby, Sinatra.
trackback

Here is a config.ru for use with Sinatra. It also includes a logging section for your app. This configuration works on Sinatra (0.9.1.1). Quite a few of the examples out there use the deprecated Sinatra::Application.default_options vs set.

:update:

Updated config.ru with Blake’s suggestions.

About these ads

Comments»

1. Blake Mizerany - April 20, 2009

John,

You don’t need to set those options. They are all automatically handled for you by Sinatra.

This will accomplish the same thing (minus the logging)

The logging should be handled by Passenger right? It should be saving your stdout, and stderr for you.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: