How do I place my app in maintenance mode?

If you need to perform e.g. complex database migrations and need to take your app offline while this completes, scale all of your App’s services to zero (see: Scaling).

If clients connect while your app is down, a configurable Maintenance Page will be served.