The Sinatra documentation is wrong on Passenger User Guide

1 view
Skip to first unread message

Third Replicator

unread,
Jan 5, 2010, 9:38:39 PM1/5/10
to Phusion Passenger Discussions
# On http://www.modrails.com/documentation/Users%20guide.html#_sinatra

require 'rubygems'
require 'sinatra'

root_dir = File.dirname(__FILE__)

set :environment, ENV['RACK_ENV'].to_sym
set :root, root_dir
set :app_file, File.join(root_dir, 'app.rb')
disable :run

run Sinatra::Application


##################### ------ Should be

require 'rubygems'
require 'sinatra'
require 'app'

root_dir = File.dirname(__FILE__)

set :environment, ENV['RACK_ENV'].to_sym
set :root, root_dir
set :app_file, File.join(root_dir, 'app.rb')
disable :run

run Sinatra::Application


Reply all
Reply to author
Forward
0 new messages