I have deployed my Python code in Heroku. The output in the terminal gives me all the correct print output, but when I click on "open app" on the Heroku website it says my code has crashed. I have already tried to include web: gunicorn app:app --log-file=-
in the Procfile. Also I tried heroku restart
, but this did not help. Why does my code not terminate correctly?
I obtained the logs using heroku logs --tail
:
2020-10-04T07:19:32.169103+00:00 app[web.1]: 2
2020-10-04T07:19:32.169117+00:00 app[web.1]: ",
2020-10-04T07:19:32.169118+00:00 app[web.1]:
2020-10-04T07:19:32.169145+00:00 app[web.1]: "scoreAway": "
2020-10-04T07:19:32.169145+00:00 app[web.1]: 0
2020-10-04T07:19:32.169160+00:00 app[web.1]: ",
2020-10-04T07:19:32.169162+00:00 app[web.1]:
2020-10-04T07:19:32.169191+00:00 app[web.1]: "round": "
2020-10-04T07:19:32.169191+00:00 app[web.1]: qualification
2020-10-04T07:19:32.169206+00:00 app[web.1]: "
2020-10-04T07:19:32.169208+00:00 app[web.1]:
2020-10-04T07:19:32.169223+00:00 app[web.1]: }
2020-10-04T07:19:32.273540+00:00 heroku[web.1]: Process exited with status 0
2020-10-04T07:19:32.305961+00:00 heroku[web.1]: State changed from starting to crashed
2020-10-04T07:19:38.000000+00:00 app[api]: Build succeeded
2020-10-04T07:19:51.079348+00:00 app[api]: Starting process with command `python poulesscraper.py` by user jnasdfli@gmail.com
2020-10-04T07:20:05.113017+00:00 heroku[run.1569]: Awaiting client
2020-10-04T07:20:05.240363+00:00 heroku[run.1569]: State changed from starting to up
2020-10-04T07:20:05.540395+00:00 heroku[run.1569]: Starting process with command `python poulesscraper.py`
2020-10-04T07:20:18.592175+00:00 heroku[run.1569]: Process exited with status 0
2020-10-04T07:20:18.618160+00:00 heroku[run.1569]: State changed from up to complete
2020-10-04T07:20:41.469440+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=poulesscraper.herokuapp.com request_id=677da64a-48a3-4852-b863-07706c13e261 fwd="213.127.49.207" dyno= connect= service= status=503 bytes= protocol=https
2020-10-04T07:20:41.635678+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=poulesscraper.herokuapp.com request_id=452f4858-7399-4461-913f-d683755db236 fwd="213.127.49.207" dyno= connect= service= status=503 bytes= protocol=https
My Procfile
contains:
web: python poulesscraper.py
My requirements.txt
file contains:
beautifulsoup4==4.9.1
bs4==0.0.1
certifi==2020.4.5.2
chardet==3.0.4
colorama==0.4.3
configparser==5.0.0
crayons==0.4.0
cycler==0.10.0
geojson==2.5.0
googlefinance==0.7
idna==2.9
joblib==0.14.1
kiwisolver==1.1.0
lxml==4.5.1
matplotlib==3.1.2
multitasking==0.0.9
numpy==1.18.0
openweathermapy==0.6.6
pandas==0.25.3
pandas-datareader==0.8.1
pyparsing==2.4.5
PySocks==1.7.1
python-dateutil==2.8.1
pytz==2019.3
requests==2.23.0
scikit-learn==0.22
scipy==1.4.1
selenium==3.141.0
simplejson==3.17.0
six==1.13.0
sklearn==0.0
soupsieve==2.0.1
urllib3==1.25.9
webdriver-manager==3.2.2
yahoo-finance==1.4.0
yfinance==0.1.54
Aucun commentaire:
Enregistrer un commentaire