Maintenance windows

During application maintenance or migrations, you can display a custom web page to the user of your application. Heroku serves a static page whenever a user tries to access the application during a maintenance window.

Checking the maintenance status

If you need to check the current status of the maintenance window for your application, you can use the heroku maintenance command. This command will show the current status of the maintenance window, that is, on if maintenance is in progress and off if the application is running in the regular production/development mode:

$ heroku maintenance
Off

Enabling the maintenance mode

To enable the maintenance mode for your application, you can use the following command from the Heroku client ...

Get Heroku Cloud Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.