如何关闭部署在 Heroku 上的应用程序? [英] How to shutdown an app deployed on Heroku?

查看:23
本文介绍了如何关闭部署在 Heroku 上的应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Heroku 上有一个被少数用户使用的应用程序.但是,我注意到有一些数据问题,我想同时修复并停止应用程序,以便用户不会输入任何新内容.

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't enter anything new.

有没有办法在 Heroku 上停止应用程序而不是销毁它?我看到重启服务器命令在那里......虽然我没有看到像停止"这样的东西.

Is there a way to stop the app on Heroku rather than destroying it? I see that restart server command is there... Although I don't see anything like 'stop'.

推荐答案

要完全停止"您的应用,您可以将 Web dynos 缩小到零,从而有效地使您的所有应用 http 进程脱机.

To completely 'stop' your app you can scale the web dynos down to zero which effectively takes all your app http-processes offline.

$ heroku ps:scale web=0
Scaling web processes... done, now running 0

这篇关于如何关闭部署在 Heroku 上的应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆