Skip to content
Browse files

Added config.ru file for Passenger conventions

  • Loading branch information...
1 parent 6a98b54 commit 230f173d75400cccb0fa1a7e31532d56e16f09c0 @SFEley SFEley committed Dec 31, 2008
Showing with 11 additions and 10 deletions.
  1. +11 −0 config.ru
  2. +0 −10 config/rackup.ru
View
11 config.ru
@@ -0,0 +1,11 @@
+require 'rubygems'
+require 'sinatra'
+
+Sinatra::Application.default_options.merge!(
+ :views => File.join(File.dirname(__FILE__), 'views'),
+ :run => false,
+ :env => ENV['RACK_ENV']
+)
+
+require 'main'
+run Sinatra.application
View
10 config/rackup.ru
@@ -1,10 +0,0 @@
-require File.dirname(__FILE__) + "/../main.rb"
-
-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 230f173

Please sign in to comment.
Something went wrong with that request. Please try again.