Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Gunicorn run on Windows

I have looked around for a while, and I was surprised not finding any information whether Gunicorn runs on Windows or not. Does anyone know if that is the case, and if so, where can I find some documentation about it?

like image 294
Flavien Avatar asked Jun 18 '12 17:06

Flavien


People also ask

What is alternative of Gunicorn for Windows?

uWSGI, NGINX, Flask, Waitress, and gevent are the most popular alternatives and competitors to Gunicorn.

How do you run with Gunicorn?

To use the full power of Gunicorn's reloading and hot code upgrades, use the paste option to run your application instead. When used this way, Gunicorn will use the application defined by the PasteDeploy configuration file, but Gunicorn will not use any server configuration defined in the file.

Which is better Gunicorn or uWSGI?

Both can reach very impressive levels of performance, though some have mentioned that Gunicorn works better under high load. Drawbacks to Gunicorn are much the same as uWSGI, though I personally have found Gunicorn to be more easily configurable than uWSGI.

Is Gunicorn a Web server?

Green Unicorn, commonly shortened to "Gunicorn", is a Web Server Gateway Interface (WSGI) server implementation that is commonly used to run Python web applications.


1 Answers

Technically this is not an answer. But practically the answer I was looking for is how to run a WSGI web app (like Django) on Windows, and for those who got into this page because of that, here it is:

I'm using waitress now, very good alternative :)

Basically all you have to do is replace the gunicorn call with:

waitress-serve --listen=*:8000 myapp.wsgi:application 

For typical apps this will give you the same result as running gunicorn. :) Good luck!

like image 197
Hendy Irawan Avatar answered Oct 18 '22 05:10

Hendy Irawan