Skip to content

Commit

Permalink
set paths explicitly via rackup
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Wiggins committed Nov 13, 2008
1 parent ea1ac42 commit cf6fd92
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions config/rackup.ru
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
require File.dirname(__FILE__) + "/../main.rb"

set_option :run, false
set_option :env, ENV['APP_ENV'] || :production
set :app_file, File.expand_path(File.dirname(__FILE__) + '/../main.rb')
set :public, File.expand_path(File.dirname(__FILE__) + '/../public')
set :views, File.expand_path(File.dirname(__FILE__) + '/../views')
set :env, :production

disable :run, :reload

run Sinatra.application

0 comments on commit cf6fd92

Please sign in to comment.