python - Are uWSGI and Nginx required to serve a Flask app? -


setting flask uwsgi , nginx quite difficult, , buildout scripts takes quite time, , has recorded instructions reproduced later.

if don't plan big load on server (it's hidden public), make sense run without uwsgi? (flask can listen port. can nginx forward requests?)

does make sense not use nginx, running bare flask app on port?

when "run flask" running werkzeug's development wsgi server, , passing flask app wsgi callable.

the development server not intended use in production. not designed particularly efficient, stable, or secure.

replace werkzeug dev server production-ready wsgi server such gunicorn or uwsgi when moving production, no matter app available.


the answer similar "should use web server". wsgi servers happen have http servers not dedicated production http server (nginx, apache, etc.).


flask documents how deploy in various ways. many hosting providers have documentation deploying python or flask.


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -