我不小心以不太优雅的方式关闭了一个Heroku控制台.而现在,当我跑
heroku ps --app myapp
Run Code Online (Sandbox Code Playgroud)
表明
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 Code Online (Sandbox Code Playgroud)
我可以用任何方式关闭run.8进程并停止支付那个一次性dyno吗?
Bri*_*ong 62
尝试
heroku ps:stop run.8
Run Code Online (Sandbox Code Playgroud)
从另一个SO答案得到了这个.
你在雪松上奔跑
Heroku ps
并得到
Process State Command
——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— ----
run.1 up for 16h bundle exec rails console
然后运行
heroku stop run.1
杀死它
将 run.1 替换为上面输出中的进程名称,例如它可能是run.12
或web.10
用于 Web dyno 或worker.16
用于工作人员。