Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Heroku,我担心如果它出现故障,我想通知用户。
我应该把我的静态under_maintenance.html页面放在哪里,这样如果应用程序的状态正在维护中,我可以告诉 Heroku 指向那里?
under_maintenance.html
谢谢
简而言之
`heroku config:set MAINTENANCE_PAGE_URL=http://s3.amazonaws.com/your_bucket/your_maintenance_page.html`
请记住,您应该在 heroku 之外托管此静态页面。
参考 https://devcenter.heroku.com/articles/maintenance-mode