Heroku 应用程序永远因 Streamlit 崩溃

时间:2020-12-31 23:57:08

标签: heroku streamlit

我第一次在 Heroku 上部署 streamlit,脚本位于 this GitHub。我实际上是从本地部署的,所以这只是为了共享我的调试脚本。以下是错误信息。

2020-12-31T23:47:18.055589+00:00 heroku[router]: 
at=error code=H20 desc="App boot timeout" 
method=GET path="/" host=stormy-dawn-49490.herokuapp.com
request_id=b3df4074-d363-41e5-8ecd-d101070679f7 
fwd="99.230.168.115" 
dyno= connect= service= status=503 bytes= protocol=https

2020-12-31T23:48:01.327576+00:00 heroku[web.1]: Error R10 (Boot timeout) -> 
Web process failed to bind to $PORT within 60 seconds of launch

我有四个脚本,它们也链接到问题开头的我的 GitHub 存储库。

setup.sh

mkdir -p ~/.streamlit/
echo “\
[general]\n\
email = \”<dont@spam.us>\”\n\
“ > ~/.streamlit/credentials.toml
echo “\
[server]\n\
headless = true\n\
enableCORS=false\n\
port = $PORT\n\
“ > ~/.streamlit/config.toml

简介:

web: sh setup.sh && streamlit run app.py

requirements.txt:

fredapi==0.4.2
numpy==1.18.5
pandas==1.1.5
plotly==4.14.1
python-dateutil==2.8.1
python-slugify==4.0.1
Quandl==3.5.3
scikit-learn==0.23.2
streamlit==0.72.0
yfinance==0.1.55
gunicorn== 19.9.0

app.py:我建议阅读here 我没有在 app.py 中添加太多内容,因为我只是在尝试如何在 Heroku 上部署

先谢谢你!

0 个答案:

没有答案