I finished a project (Week 8 CS50) and wanted to put it on the web. It works fine in the Cloud9 IDE and the localized web server. It's "application.py" and uses Flask (configured for me by CS50).
So I read up on deploying, and made several attempts to deploy on Heroku. Can't get it to work.
Error Log:
- 2017-02-13T04:48:13.132359+00:00 heroku[web.1]: State changed from crashed to starting
- 2017-02-13T04:48:17.100053+00:00 heroku[web.1]:
Starting process with command
python application.py
- 2017-02-13T04:48:20.884225+00:00 heroku[web.1]: Process exited with status 0
- 2017-02-13T04:48:20.902452+00:00 heroku[web.1]: State changed from starting to crashed
- 2017-02-13T04:57:31.197394+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=goldsteinsentiments.herokuapp.com request_id=e917b69b-7636-40c9-9547-a2df2aaa1f3d fwd="50.39.98.15" dyno= connect= service= status=503 bytes=
- 2017-02-13T04:57:31.307356+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=goldsteinsentiments.herokuapp.com request_id=096751c7-5cd0-4ba2-8705-6bf61578d516 fwd="50.39.98.15" dyno= connect= service= status=503 bytes=
Procfile (Copied one from stackoverflow): "web: python application.py"
Main application.py: https://github.com/jamesdylangoldstein/sentiments/blob/master/application.py
All the files: https://github.com/jamesdylangoldstein/sentiments
web: gunicorn application:app
– metmirrgunicorn
to your requirements.txt file – metmirr