We got nominated! Help us out and vote for GitHub as Best Bootstrapped Startup of 2008. (You can vote once a day.) [ hide ]

public
Description: Phusion Passenger (mod_rails)
Homepage: http://www.modrails.com/
Clone URL: git://github.com/FooBarWidget/passenger.git
Click here to lend your support to: passenger and make a donation at www.pledgie.com !
Update the Sinatra configuration example as suggested by a user.
Hongli Lai (Phusion) (author)
Mon Nov 24 11:35:38 -0800 2008
commit  7164ac3abc64fdd7828bd6a5879e9a8b71cdb582
tree    af7a1d2ec3e0ac5eb307dfa15301a87224387dc8
parent  f99e49d421435949297fbad9c73f6ca7b2342995
...
495
496
497
 
 
 
498
 
 
499
500
 
501
502
503
504
505
506
507
...
495
496
497
498
499
500
501
502
503
504
 
505
506
507
 
 
508
509
510
0
@@ -495,13 +495,16 @@ run Ramaze::Adapter::Base
0
 ------------------------------------------------------
0
 require 'rubygems'
0
 require 'sinatra'
0
+
0
+root_dir = File.dirname(__FILE__)
0
+
0
 Sinatra::Application.default_options.merge!(
0
+ :views => File.join(root_dir, 'views'),
0
+ :app_file => File.join(root_dir, 'app.rb'),
0
   :run => false,
0
- :env => ENV['RACK_ENV']
0
+ :env => ENV['RACK_ENV'].to_sym
0
 )
0
 
0
-### ...your Sinatra application code here... ###
0
-
0
 run Sinatra.application
0
 ------------------------------------------------------
0
 

Comments

    No one has commented yet.