manage maintenance mode for an app
maintenance display the current maintenance status of app
Example:
$ heroku maintenance off
# File lib/heroku/command/maintenance.rb, line 16 def index validate_arguments! case api.get_app_maintenance(app).body['maintenance'] when true display('on') when false display('off') end end
maintenance:off take the app out of maintenance mode
Example:
$ heroku maintenance:off Disabling maintenance mode for myapp
# File lib/heroku/command/maintenance.rb, line 53 def off validate_arguments! action("Disabling maintenance mode for #{app}") do api.post_app_maintenance(app, '0') end end
maintenance:on put the app into maintenance mode
Example:
$ heroku maintenance:on Enabling maintenance mode for myapp
# File lib/heroku/command/maintenance.rb, line 36 def on validate_arguments! action("Enabling maintenance mode for #{app}") do api.post_app_maintenance(app, '1') end end