【发布时间】:2020-06-23 01:34:10
【问题描述】:
我第一次尝试在 Heroku 上托管一个简单的流光测试应用程序。该应用在本地主机上运行良好,但在 Heroku(代码 h10)上崩溃。
附上完整的 h10 错误日志尾部。文件的 Github 链接在这里:https://github.com/antonysama/waskasoo-app。
2020-06-22T23:51:43.163645+00:00 heroku[web.1]: Starting process with command `sh setup.sh && streamlit run waskasoo_app.py`
2020-06-22T23:51:45.701733+00:00 app[web.1]: “
2020-06-22T23:51:45.701797+00:00 app[web.1]: setup.sh: 3: setup.sh: [server]: not found
2020-06-22T23:51:45.701832+00:00 app[web.1]: setup.sh: 4: setup.sh: headless: not found
2020-06-22T23:51:45.701871+00:00 app[web.1]: setup.sh: 6: setup.sh: port: not found
2020-06-22T23:51:45.701981+00:00 app[web.1]: setup.sh: 7: setup.sh: “: not found
2020-06-22T23:51:45.756036+00:00 heroku[web.1]: Process exited with status 127
2020-06-22T23:51:45.804273+00:00 heroku[web.1]: State changed from starting to crashed
2020-06-22T23:51:45.806829+00:00 heroku[web.1]: State changed from crashed to starting
2020-06-22T23:51:55.000000+00:00 app[api]: Build succeeded
2020-06-22T23:51:55.344664+00:00 heroku[web.1]: Starting process with command `sh setup.sh && streamlit run waskasoo_app.py`
2020-06-22T23:51:57.304450+00:00 app[web.1]: “
2020-06-22T23:51:57.304524+00:00 app[web.1]: setup.sh: 3: setup.sh: [server]: not found
2020-06-22T23:51:57.304562+00:00 app[web.1]: setup.sh: 4: setup.sh: headless: not found
2020-06-22T23:51:57.304604+00:00 app[web.1]: setup.sh: 6: setup.sh: port: not found
2020-06-22T23:51:57.304832+00:00 app[web.1]: setup.sh: 7: setup.sh: “: not found
2020-06-22T23:51:57.353758+00:00 heroku[web.1]: Process exited with status 127
2020-06-22T23:51:57.397709+00:00 heroku[web.1]: State changed from starting to crashed
2020-06-22T23:52:05.978572+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=waskasoo-app.herokuapp.com request_id=b4a6b610-0da3-45a5-9ab9-2d348a7f26c1 fwd="174.3.224.245" dyno= connect= service= status=503 bytes= protocol=https
2020-06-22T23:52:06.425022+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=waskasoo-app.herokuapp.com request_id=022659a9-8c86-4688-bd5b-95d34e6851bd fwd="174.3.224.245" dyno= connect= service= status=503 bytes= protocol=https
【问题讨论】:
-
我怀疑您的 .sh 文件在本地是否有效。这不是您在 Bash 中执行多行回显的方式,而大引号也无济于事。 stackoverflow.com/questions/10969953/…
-
Please don't post screenshots of text。它们无法被搜索或复制,并且可用性差。相反,将代码作为文本直接粘贴到您的问题中。如果选择它并单击
{}按钮或Ctrl+K,则代码块将缩进四个空格,这将导致其呈现为代码。
标签: heroku