heroku cli enter maintenance mode code example
Example 1: heroku cli
$ brew tap heroku/brew && brew install heroku
Example 2: heroku custom maintenance page
heroku config:set MAINTENANCE_PAGE_URL=//s3.amazonaws.com/<your_bucket>/your_maintenance_page.html