How to stop an app on Heroku?

后端 未结 9 976
猫巷女王i
猫巷女王i 2020-12-22 15:10

I have an app on Heroku which is being used by few users. However, I notice there are some data issues which i\'d like to fix and stop the app in the mean time so users don\

9条回答
  •  太阳男子
    2020-12-22 15:19

    http://devcenter.heroku.com/articles/maintenance-mode

    If you’re deploying a large migration or need to disable access to your application for some length of time, you can use Heroku’s built in maintenance mode. It will serve a static page to all visitors, while still allowing you to run rake tasks or console commands.

    $ heroku maintenance:on
    Maintenance mode enabled.
    

    and later

    $ heroku maintenance:off
    Maintenance mode disabled.
    

提交回复
热议问题