我是第一次尝试heroku。我将一个flask应用程序部署到了heroku,但是在访问给定的URL时,发生了应用程序错误。日志看起来像这样:
2018-07-13T17:14:26.845871+00:00 app[web.1]: File "<string>", line 0
2018-07-13T17:14:26.845872+00:00 app[web.1]:
2018-07-13T17:14:26.845874+00:00 app[web.1]: ^
2018-07-13T17:14:26.845880+00:00 app[web.1]: SyntaxError: unexpected EOF while parsing
2018-07-13T17:14:26.846389+00:00 app[web.1]: [2018-07-13 17:14:26 +0000] [9] [INFO] Worker exiting (pid: 9)
2018-07-13T17:14:27.030856+00:00 app[web.1]: [2018-07-13 17:14:27 +0000] [4] [INFO] Shutting down: Master
2018-07-13T17:14:27.030997+00:00 app[web.1]: [2018-07-13 17:14:27 +0000] [4] [INFO] Reason: Worker failed to boot.
2018-07-13T17:14:27.177921+00:00 heroku[web.1]: Process exited with status 3
2018-07-13T17:14:27.263234+00:00 heroku[web.1]: State changed from up to crashed
2018-07-13T17:14:28.073126+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=motormarche.herokuapp.com request_id=5d922468-423d-4b26-a831-4de8b1f28370 fwd="157.35.225.19" dyno= connect= service= status=503 bytes= protocol=https