No commit activity in last 3 years
No release in over 3 years
It provide maintenance page to your rack application. Also see https://github.com/borot/rack_maintenance.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

Rack_Maintenance, for your maintenance

What's this?

Rack_Maintenance is a rack middleware to show maintenance page while you maintenance application.

Installation

gem install rack_maintenance

How to use

####basic usage

#config.ru
require 'rack/maintenance'
use Rack::Maintenance

####set template page to show

#config.ru
require 'rack/maintenance'
use Rack::Maintenance,
  template: File.read('path/to/maintenance.html')

####set inactivate

#config.ru
require 'rack/maintenance'
use Rack::Maintenance,
  template: File.read('path/to/maintenance.html'),
  activate: false

An 'activate' option is default to true and maintenance page will be displayed. When it set to false,Rack::Maintenance is not work.

####set status code if you wish to. (default to 503)

#config.ru
require 'rack/maintenance'
use Rack::Maintenance,
  status: 200,
  template: File.read('path/to/maintenance.html'),

Although status code can be changed, there are almost no need to do so.