Book Image

Heroku Cloud Application Development

By : Anubhav Hanjura
Book Image

Heroku Cloud Application Development

By: Anubhav Hanjura

Overview of this book

Table of Contents (17 chapters)
Heroku Cloud Application Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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 interface (CLI):

$ heroku maintenance:on
Enabling maintenance mode for sampleapp... done

Disabling the maintenance mode

To disable the maintenance mode for your application, you can use the following command from the Heroku client interface (CLI...