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

Pass UNIX socket parameters to runserver, and hence to gunicorn #2621

Closed
joefrancia opened this issue Apr 14, 2017 · 3 comments
Closed

Pass UNIX socket parameters to runserver, and hence to gunicorn #2621

joefrancia opened this issue Apr 14, 2017 · 3 comments

Comments

@joefrancia
Copy link
Contributor

I'd prefer to have Gunicorn serve requests from a UNIX socket instead of via HTTP. Is this something that can be added to a near future version of Superset?

@xrmx
Copy link
Contributor

xrmx commented Apr 15, 2017

You can add your own thin wrapper for gunicorn, runserver is not much more than that https://github.com/airbnb/superset/blob/master/superset/cli.py#L61

@mistercrunch
Copy link
Member

Right. You can issue your own gunicorn command or hook up whatever else wsgi server and configure is however you prefer

@joefrancia
Copy link
Contributor Author

Thanks for your replies. While it's not very challenging to create a Gunicorn startup script to allow Superset to be served from a socket, I think it's a common enough set up to warrant having runserver (or the Superset config file) accept a path to a UNIX socket for the sake of consistency and simplicity. So I've added a pull request: #2627

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

3 participants