0

I have a Python socket app build in Flask which is to be hosted on Heroku. Now, I know that I can connect the Flask app through the client end socket which I have built in Javascript. The UI is also embedded with the client end. I wish to deploy the Flask app without any frontend/UI HTML file but it outputs the following error:

00:19:45 web.1 | 2018-06-27 00:19:45 [12308] [ERROR] Connection in use: ('0.0.0.0', 5000)

00:19:45 web.1 | 2018-06-27 00:19:45 [12308] [ERROR] Retrying in 1 second.

00:19:46 web.1 | 2018-06-27 00:19:46 [12308] [ERROR] Connection in use: ('0.0.0.0', 5000)

00:19:46 web.1 | 2018-06-27 00:19:46 [12308] [ERROR] Retrying in 1 second.

1 Answer 1

1

You need to use the bellow line in your Procfile:

web: gunicorn --worker-class eventlet -w 1 module:app

More informations about Gunicorn Web Server on: https://flask-socketio.readthedocs.io/en/latest/#gunicorn-web-server

Obs.: You need to install eventlet.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.