首页 文章

无法在Heroku上添加Dynos

提问于
浏览
4

设置:

  • 我在heroku上有一个运行1web dyno,效果很好

  • 我有另一个"sleeping"

  • 我创建了一个新的应用程序但不知何故dynos没有出现 .

  • 我有一张插入Heroku的信用卡,我愿意支付额外费用

当我尝试git push on new app时,我得到一个超时:

dsa002574:node-canvas mike.borozdin$ git push heroku master
ssh: connect to host heroku.com port 22: Operation timed out
fatal: The remote end hung up unexpectedly

当我尝试heroku比例时,我也得到一个错误:

dsa002574:node-canvas mike.borozdin$ heroku ps:scale web=1
Scaling web dynos... failed
 !    App must be deployed before dynos can be scaled.

从Heroku管理员扩展似乎不起作用 . 这是截图:
enter image description here

任何关于为什么heroku不会让我扩展的猜测?

3 回答

  • 4

    好吧,你的 git push 失败了("operation timed out"),所以你没有't actually deployed an app. As a result, Heroku'无法扩展不存在的应用程序:-)

  • 1

    你有procfile吗? https://devcenter.heroku.com/articles/procfile

    这将指定要运行的应用程序,以及为其分配dynos的内容 .

  • 0

    推送时我没有超时,但是网站因“没有网络进程正在运行”而失败,当我尝试使用ps时:我得到了“必须在dynos缩放之前部署应用程序” .

    事实证明这是因为我创建了一个本地 heroku 分支而不是 master ,当我推动时,它说"Pushed to non-master branch, skipping build."花了我一段时间才注意到 . 所以它甚至没有尝试部署应用程序 . 通过推送 master 修复 .

相关问题