-
Notifications
You must be signed in to change notification settings - Fork 21.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add some useful comments to rackup config
- Loading branch information
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |