2008-07-16 00:32:31 -04:00
|
|
|
# Rackup Configuration
|
|
|
|
#
|
|
|
|
# Start Rails mongrel server with rackup
|
|
|
|
# $ rackup -p 3000 config.ru
|
|
|
|
#
|
|
|
|
# Start server with webrick (or any compatible Rack server) instead
|
|
|
|
# $ rackup -p 3000 -s webrick config.ru
|
|
|
|
|
|
|
|
# Require your environment file to bootstrap Rails
|
2008-07-16 00:20:29 -04:00
|
|
|
require File.dirname(__FILE__) + '/config/environment'
|
2008-07-16 00:32:31 -04:00
|
|
|
|
|
|
|
# Static server middleware
|
|
|
|
# You can remove this extra check if you use an asset server
|
2008-07-16 00:20:29 -04:00
|
|
|
use Rails::Rack::Static
|
2008-07-16 00:32:31 -04:00
|
|
|
|
|
|
|
# Dispatch the request
|
2008-07-16 00:20:29 -04:00
|
|
|
run ActionController::Dispatcher.new
|