我正在将我的项目部署到Heroku,并在本地尝试使用te命令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
这是我的Procfile:
web: gunicorn saga.saga.wsgi --log-file -
答案 0 :(得分:0)
可能是你把你的dynos缩小到零, 尝试以下命令将dynos设置为一个
heroku ps:scale web=1
你可以在这里找到更多信息 https://devcenter.heroku.com/articles/error-codes
答案 1 :(得分:0)
我发现了错误。这是因为我在错误的目录中运行了git init
。这就是为什么“ saga.saga”在那里的原因。