Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
Run dockerised Flask app to heroku with gunicorn
Post Body

I currently have my flask application running inside a docker container. In my Dockerfile I have a command which will run python manage.py runserver to run the app.

However I want to deploy the application to Heroku and run the app with the gunicorn server. I've prepared a basic Procfile which looks like:

web: gunicorn manage:app

When I deploy to Heroku I get the following errors:

2016-12-16T00:27:00.905884 00:00 app[api]: Release v91 created by user
2016-12-16T00:27:00.905884 00:00 app[api]: Deployed web (e5d8c5313a04) by user
2016-12-16T00:27:01.904778 00:00 heroku[web.1]: State changed from crashed to starting
2016-12-16T00:27:13.752569 00:00 heroku[web.1]: Starting process with command `python3`
2016-12-16T00:27:15.768266 00:00 heroku[web.1]: State changed from starting to crashed
2016-12-16T00:27:15.740802 00:00 heroku[web.1]: Process exited with status 0
2016-12-16T00:27:17.024469 00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=myapp.herokuapp.com request_id=e286fb83-7012-49be-a553-625e8d056115 fwd="82.37.9.108" dyno= connect= service= status=503 bytes=

Author
Account Strength
60%
Account Age
8 years
Verified Email
No
Verified Flair
No
Total Karma
617
Link Karma
360
Comment Karma
176
Profile updated: 1 month ago
Posts updated: 3 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
8 years ago