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?

Paul
  • 25,812
  • 38
  • 124
  • 247

2 Answers2

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.

Yuval Adam
  • 161,610
  • 92
  • 305
  • 395
-1

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

Apoorv
  • 1,338
  • 1
  • 17
  • 18
  • 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. – Chamod Oct 20 '20 at 17:26
  • just remove the key, and then restart the heroku server, it should reflect ur change in sometime, it takes time – Apoorv Oct 22 '20 at 07:48
  • OK. I'll try. Thanks. – Chamod Oct 22 '20 at 11:41