Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
363 views
in Technique[技术] by (71.8m points)

Heroku Apps forever crashed with streamlit

My first time deploying streamlit on Heroku, and the scripts are on this GitHub. I'm actually deploying from local, so this is just to share my scripts to debug. The following is the error message.

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

I have four scripts, which is also linked to my GitHub repository the beginning of the question.

setup.sh

mkdir -p ~/.streamlit/
echo “
[general]

email = ”<[email protected]>”

“ > ~/.streamlit/credentials.toml
echo “
[server]

headless = true

enableCORS=false

port = $PORT

“ > ~/.streamlit/config.toml

Procfile:

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: I'd suggest read here I didn't put much in the app.py as I'm just trying how to deploy on Heroku

Thank you in advance!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...