如何停止Heroku上的应用程序? [英] How to stop an app on Heroku?

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

问题描述

Heroku上有一个应用程序,正在被少数用户使用。但是,我注意到有一些数据问题,我想在此期间修复并停止应用程序,以免用户输入任何新内容。

有没有办法在heroku上停止应用程序而不是销毁它?我发现重新启动服务器命令在那里...虽然我没有看到像'stop'这样的任何东西

解决方案

停止'你的应用程序,你可以将web dynos缩小到零,这有效地将你的所有应用程序http进程离线。

  $ heroku ps:scale web = 0 
扩展web进程...完成,正在运行0


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.

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

解决方案

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天全站免登陆