我不小心以不太优雅的方式关闭了一个Heroku控制台。现在我跑的时候
heroku ps --app myapp
显示
run.8 up for 5h bundle exec rails console
run.9 complete for 15m bundle exec rails console
web.1 up for 4h bundle exec unicorn -p $PORT -c ./..
web.2 up for 4h bundle exec unicorn -p $PORT -c ./..
worker.1 up for 4h bundle exec rake jobs:work
任何方式我都可以关闭 run.8 进程并停止支付那个一次性dyno吗?
答案 0 :(得分:61)
尝试
heroku ps:stop run.8
从另一个SO答案得到了这个。
答案 1 :(得分:4)
在雪松上你跑
heroku ps
并获取
Process State Command
-------- ---------- ------------------------ ------------
run.1 up for 16h bundle exec rails console
然后运行
heroku stop run.1
杀死它
将run.1替换为上面输出中的进程名称,例如: Web dyno可能为run.12
或web.10
,对于工作者可能为worker.16
。
答案 2 :(得分:2)
您是否尝试过重新启动应用程序 - 可以吗?
heroku restart