Heroku应用程序Erros Django

时间:2019-02-09 03:37:11

标签: django heroku application-error

我不明白为什么该应用程序出错。我遵循了djangogirls-extension deploy教程。

这是> heroku logs --tail --app srms-demo 命令的输出

2019-02-09T02:31:06.000000+00:00 app[api]: Build failed -- check your build output: https://dashboard.heroku.com/apps/9822ee2e-0b33-4163-9dd1-5d9897a5b7c7/activity/builds/e01929d2-7a31-45fe-97c3-90eab053a667
2019-02-09T02:47:00.587192+00:00 heroku[run.9364]: State changed from up to complete
2019-02-09T02:50:39.686144+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=srms-demo.herokuapp.com request_id=5859852f-3ae2-47c8-9f6e-3ba05f1c5bbb fwd="43.245.123.100" dyno= connect= service= status=503 bytes= protocol=https
2019-02-09T03:10:39.561398+00:00 heroku[run.2791]: Process exited with status 0
2019-02-09T03:11:20.141798+00:00 heroku[run.6801]: State changed from up to complete
2019-02-09T03:15:30.610720+00:00 heroku[web.1]: State changed from crashed to starting

然后访问error link并找到了

-----> Python app detected
 !     Requested runtime (python-3.7) is not available for this stack (heroku-18).
 !     Aborting.  More info: https://devcenter.heroku.com/articles/python-support
 !     Push rejected, failed to compile Python app.
 !     Push failed


更新

将runtime.txt更改为python-3.7.1后,将其推送到Heroku主服务器上

这是 heroku日志--tail --app srms-demo命令的输出

2019-02-09T02:31:06.000000+00:00 app[api]: Build failed -- check your build output: https://dashboard.heroku.com/apps/9822ee2e-0b33-4163-9dd1-5d9897a5b7c7/activity/builds/e01929d2-7a31-45fe-97c3-90eab053a667
2019-02-09T02:47:00.587192+00:00 heroku[run.9364]: State changed from up to complete
2019-02-09T02:50:39.686144+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=srms-demo.herokuapp.com request_id=5859852f-3ae2-47c8-9f6e-3ba05f1c5bbb fwd="43.245.123.100" dyno= connect= service= status=503 bytes= protocol=https
2019-02-09T03:10:39.561398+00:00 heroku[run.2791]: Process exited with status 0
2019-02-09T03:11:20.141798+00:00 heroku[run.6801]: State changed from up to complete
2019-02-09T03:15:30.610720+00:00 heroku[web.1]: State changed from crashed to starting
2019-02-09T06:28:53.311604+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=srms-demo.herokuapp.com request_id=04075507-aa74-4f7b-b303-081b50c4d876 fwd="116.58.205.24" dyno= connect= service= status=503 bytes= protocol=https

0 个答案:

没有答案