"How to fix 'App crashed' on heroku in cmd prompt"



我正在尝试在heroku上启动我的应用程序。然而,当我执行heroku open命令时,我看到它在日志中给出了"应用程序崩溃"的问题

已尝试检查日志并重新启动轨道服务器。

heroku logs --app obscure-beyond-78036

CMD

2019-10-08T19:49:11.686542+00:00 heroku[router]: at=error code=H10 desc="App crashed" 方法=GET 路径="/" host=obscure-beyond-78036.herokuapp.com request_id=db281cf3-6b5b-46fa-b35d-72617b23a864 fwd="73.244.194.180" dyno= 连接= 服务= 状态=503 字节= 协议=https

预期功能是在 heroku 上启动应用程序。

添加的日志

C:r5.1>heroku logs --app obscure-beyond-78036
2019-11-09T22:31:51.129452+00:00 heroku[web.1]: State changed from crashed to starting
2019-11-09T22:31:56.935810+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 32098 -e production`
2019-11-09T22:31:59.364804+00:00 heroku[web.1]: State changed from starting to crashed
2019-11-09T22:31:59.370115+00:00 heroku[web.1]: State changed from crashed to starting
2019-11-09T22:31:59.344842+00:00 heroku[web.1]: Process exited with status 127
2019-11-09T22:31:59.274991+00:00 app[web.1]: /usr/bin/env: ‘rubyr’: No such file or directory
2019-11-09T22:32:03.221294+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 37912 -e production`
2019-11-09T22:32:05.568964+00:00 heroku[web.1]: State changed from starting to crashed
2019-11-09T22:32:05.551998+00:00 heroku[web.1]: Process exited with status 127
2019-11-09T22:32:05.470297+00:00 app[web.1]: /usr/bin/env: ‘rubyr’: No such file or directory

查看有关日志以及如何在 Heroku 上使用它们的文档 https://devcenter.heroku.com/articles/logging#log-retrieval 如果您不清楚日志,请再次询问。

此外,谷歌搜索显示了heroku上的rails应用程序的一些典型问题,例如Heroku代码= H10 desc="应用程序崩溃" - 无法弄清楚为什么它崩溃了

最新更新