Does Gunicorn run on Windows

PythonGunicorn

Python Problem Overview


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?

Python Solutions


Solution 1 - Python

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!

Solution 2 - Python

Gunicorn is for a UNIX environment and is incompatible with Windows. Also for more info please refer to it's docs.

Solution 3 - Python

Edit: there's now a plan to add Windows support. https://github.com/benoitc/gunicorn/issues/524


No. Gunicorn doesn't run on Windows. It's very design is to take 'advantage of features in Unix/Unix-like kernels'.

Solution 4 - Python

gunicorn used not to run directly on Windows, but work (and pending issues being resolved) mean that you can make it work on Cygwin.

See https://github.com/benoitc/gunicorn/issues/407 ....

(Note: I update this answer because the bug has now been fixed)

Solution 5 - Python

Gunicorn does not support windows, although you can use waitress

Solution 6 - Python

I'm trying to Build ASGI app on windows using FASTAPI. FASTAPI is run on Gunicorn & Uvicorn server.I read the FASTAPI documentation to find out how to deploy my app on windows. They suggesting to use docker to deploy the app from windows. It turns out to be the best way to use Gunicorn on windows.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionFlavienView Question on Stackoverflow
Solution 1 - PythonHendy IrawanView Answer on Stackoverflow
Solution 2 - PythonBrandon KreiselView Answer on Stackoverflow
Solution 3 - PythonColonel PanicView Answer on Stackoverflow
Solution 4 - PythonPhilippe OmbredanneView Answer on Stackoverflow
Solution 5 - PythonShubham RaiView Answer on Stackoverflow
Solution 6 - PythonWilly satrio nugrohoView Answer on Stackoverflow