mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Add some useful comments to rackup config
This commit is contained in:
parent
8b933517ea
commit
f7d08acd5e
1 changed files with 14 additions and 0 deletions
|
@ -1,3 +1,17 @@
|
|||
# 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
|
||||
require File.dirname(__FILE__) + '/config/environment'
|
||||
|
||||
# Static server middleware
|
||||
# You can remove this extra check if you use an asset server
|
||||
use Rails::Rack::Static
|
||||
|
||||
# Dispatch the request
|
||||
run ActionController::Dispatcher.new
|
||||
|
|
Loading…
Reference in a new issue