Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ddollar committed Aug 30, 2009
1 parent 4cd1cd7 commit 635355e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.rdoc
Expand Up @@ -7,6 +7,17 @@ maintenance.html page and display that instead of incoming requests.

sudo gem install rack-maintenance

== Usage

# config/environment.rb
config.middleware.use 'Rack::Maintenance',
:file => Rails.root.join('public', 'maintenance.html'),
:env => 'MAINTENANCE'

The `:env` is optional. If specified, all requests will be shown the
maintenance page if the environment variable is set. If `:env` is not
specified, the maintenance page will be shown if it exists.

== Note on Patches/Pull Requests

* Fork the project.
Expand Down

0 comments on commit 635355e

Please sign in to comment.