-
Clone the repo
-
Create a virtualenv
-
Active the virtualenv
-
Install necessary dependencies
pip install -r requirements.txt
Then, run the app by
python3 app.py
We have added eventlet
as a server for this app. So, we don't need to run flask run
to use flask
s default development server, as it is not intented to use in production ready app.
docker build -t live-chat-flask-socketio .
docker tag live-chat-flask-socketio sabbirsobhani/live-chat-flask-socketio
docker push sabbirsobhani/live-chat-flask-socketio
with gunicorn
CMD [ "gunicorn", "--worker-class", "eventlet", "-w", "1", "app:app"]
with only/direct eventlet
CMD [ "python3", "app.py"]
To solve gunicorn with eventlet issue.
Enjoy!