Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gunicorn/eventlet/nginx config #1

Closed
nikitph opened this issue Apr 30, 2016 · 2 comments
Closed

gunicorn/eventlet/nginx config #1

nikitph opened this issue Apr 30, 2016 · 2 comments

Comments

@nikitph
Copy link

nikitph commented Apr 30, 2016

great stuff with enferno man. this is not a issue but more of a request. do you have any pointers to tuning ansible config for enferno/flask-socketio/nginx/gunicorn/eventlet?

@level09
Copy link
Owner

level09 commented May 1, 2016

Hi @nikitph,

Nginx is automatically setup with this playbook.

You can change the worker type in https://github.com/level09/enferno-ansible/blob/master/roles/enferno/templates/enferno.sh#L14

You can specify different worker types for Gunicorn by passing -k gevent or -k sync

if you want to use websockets I recommend using this library:
https://github.com/zeekay/flask-uwsgi-websocket
and deploying your app with uwsgi.

Hope that helps

@nikitph
Copy link
Author

nikitph commented May 2, 2016

thanks a lot

@nikitph nikitph closed this as completed May 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants