Load custom maintenance page to Heroku
Asked Answered
S

2

8

Heroku can display custom maintenance page:

heroku config:set MAINTENANCE_PAGE_URL=http://some_server/my_page.html

This requires presence of some website where the page will be always online.

Could the maintenance page be loaded into Heroku once and forever?

Sverige answered 18/4, 2014 at 8:28 Comment(0)
K
9

No, since there will be no way for the Heroku router to show it if there is a maintenance problem on Heroku.

The canonical way is to put that page on Amazon S3, or any other provider that can serve static pages.

Kellsie answered 18/4, 2014 at 8:31 Comment(0)
C
-1

goto app-> setting -> reveal config vars add new row key =MAINTENANCE_PAGE_URL value = any url u want to open

Cuspid answered 25/10, 2016 at 13:42 Comment(3)
Could I know that how to revert back to show default page after setting this config ? I tried to do that by deleting the key. But it still display the custom site.Reactionary
just remove the key, and then restart the heroku server, it should reflect ur change in sometime, it takes timeCuspid
OK. I'll try. Thanks.Reactionary

© 2022 - 2024 — McMap. All rights reserved.