英文:
Heroku won't scale dyno even tho it says it did
问题
当我运行 heroku ps:scale web=1
时,它告诉我 正在扩展 dynos... 完成,现在运行在 1:Basic
。但当我运行 heroku ps
时,我得到 没有 dynos 在...
。
结果我的应用没有运行,我收到了这些日志 heroku[router]: at=error code=H14 desc="没有正在运行的 web 进程" method=GET
。
这是在成功部署一个将我的堆栈从 18 升级到 20 的构建后发生的。
英文:
When I run heroku ps:scale web=1
It tell me Scaling dynos... done, now running web at 1:Basic
But then when I run heroku ps
I get No dynos on ...
As a result my app isn't running, I get these logs heroku[router]: at=error code=H14 desc="No web processes running" method=GET
This happens after successfully deploying a build that upgrades my stack from 18 to 20
答案1
得分: 0
在Heroku上打开工单后,以下是他们提供的解决方案:
感谢您联系我们。由于heroku-cli中存在一些问题,heroku-cli ps:scale命令无法正常工作(我们已将此问题通知给工程团队)。请前往https://dashboard.heroku.com/apps/APP_NAME/resources页面,然后执行以下操作:
- 单击Dyno信息旁边的铅笔图标,将其滑动到0,然后确认。
- 单击Dyno信息旁边的铅笔图标,将其滑动到1,然后确认。
- 在命令行上运行:
heroku ps -a APP_NAME
,并检查是否已解决问题。
在我的情况下,没有滑块,而是一个用于切换Dynos开关的按钮。
英文:
After opening a ticket on Heroku, here is the solution from them:
Thanks for reaching out to us. Due to some issue in heroku-cli ps:scale command is not working properly on heroku-cli (we have informed it to engineering team) Please go to https://dashboard.heroku.com/apps/APP_NAME/resources page and :-
click on Pencil icon near Dyno information and slide down to 0 then confirm.
click on Pencil icon near Dyno information and slide up to 1 then confirm.
Run: heroku ps -a APP_NAME
on cli and check whether it worked or not.
On my side there was no slider but a toggle button to toggle the dynos on and off.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论