forked from ddollar/rack-maintenance
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release version 2.0.0 and print upgrade notice.
This new version drops built-in filtering of /assets, and leaves all paths to be excluded from maintenance to be configured by the user.
- Loading branch information
1 parent
128f504
commit b6174e5
Showing
3 changed files
with
16 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
******** Rack::Maintenance 2.0.0 ********* | ||
|
||
Rack::Maintenance 2.0.0 has dropped the built-in filter for /assets. | ||
This means that all your paths will now be blocked in maintenance | ||
mode, unless you exclude them in the configuration. | ||
|
||
To bring back pre-2.0.0 behaviour, configure the gem like so: | ||
|
||
config.middleware.use 'Rack::Maintenance', | ||
file: Rails.root.join("public", "maintenance.html"), | ||
without: /\A\/assets/ | ||
|
||
|
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,5 +1,5 @@ | ||
module Rack | ||
class Maintenance | ||
VERSION = "1.2.0" | ||
VERSION = "2.0.0" | ||
end | ||
end |
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