ddollar-rack-maintenance 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +11 -0
- data/VERSION +1 -1
- data/rack-maintenance.gemspec +1 -1
- metadata +1 -1
data/README.rdoc
CHANGED
@@ -7,6 +7,17 @@ maintenance.html page and display that instead of incoming requests.
|
|
7
7
|
|
8
8
|
sudo gem install rack-maintenance
|
9
9
|
|
10
|
+
== Usage
|
11
|
+
|
12
|
+
# config/environment.rb
|
13
|
+
config.middleware.use 'Rack::Maintenance',
|
14
|
+
:file => Rails.root.join('public', 'maintenance.html'),
|
15
|
+
:env => 'MAINTENANCE'
|
16
|
+
|
17
|
+
The `:env` is optional. If specified, all requests will be shown the
|
18
|
+
maintenance page if the environment variable is set. If `:env` is not
|
19
|
+
specified, the maintenance page will be shown if it exists.
|
20
|
+
|
10
21
|
== Note on Patches/Pull Requests
|
11
22
|
|
12
23
|
* Fork the project.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
data/rack-maintenance.gemspec
CHANGED