我正在将我的项目部署到Heroku,并尝试在本地使用te-comand heroku local web
。这很好用,但是,当我把这个项目发送到网上运行时,我在Heroku日志上看到了这个错误:
2018-02-20T17:23:21.824637+00:00 heroku[web.1]: State changed from starting to crashed
2018-02-20T17:23:33.111420+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=sagaedu.herokuapp.com request_id=b04299fc-6ea8-41d3-a994-9a064b6d98af fwd="177.39.172.28" dyno= connect= service= status=503 bytes= protocol=https
2018-02-20T17:24:03.282786+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=sagaedu.herokuapp.com request_id=88a02575-95dc-4450-b9b4-e53f65770454 fwd="177.39.172.28" dyno= connect= service= status=503 bytes= protocol=https
2018-02-20T17:27:04.669222+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=sagaedu.herokuapp.com request_id=c56fa212-d104-4569-b916-439e3d003398 fwd="177.39.172.28" dyno= connect= service= status=503 bytes= protocol=https
2018-02-20T17:32:00.954709+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=sagaedu.herokuapp.com request_id=c8126dd0-0868-4d12-9421-2d2d7b94e73c fwd="177.39.172.28" dyno= connect= service= status=503 bytes= protocol=https
2018-02-20T17:35:16.000000+00:00 app[api]: Build started by user
2018-02-20T17:36:00.992071+00:00 heroku[web.1]: State changed from crashed to down
2018-02-20T17:36:00.794498+00:00 app[api]: Deploy 07a1f9df by user
2018-02-20T17:36:00.794498+00:00 app[api]: Release v15 created by user
2018-02-20T17:35:16.000000+00:00 app[api]: Build succeeded
2018-02-20T17:38:16.055964+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=sagaedu.herokuapp.com request_id=12e85de9-ac80-413c-b022-8f8fb91944aa fwd="177.39.172.28" dyno= connect= service= status=503 bytes= protocol=https
这是我的程序文件:
^{pr2}$
我发现了错误。这是因为我在错误的目录中运行了
git init
。这就是为什么”传奇。传奇“在那里。在可能是你把双极子调成了零, 尝试使用以下命令将dynos设置为1
你可以在这里找到更多信息 https://devcenter.heroku.com/articles/error-codes
相关问题 更多 >
编程相关推荐