Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
180 views
in Technique[技术] by (71.8m points)

python - 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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...