News for hackers. Stuff that matters.
Re:The Flask Mega-Tutorial by derda on Sunday March 24, 2013 @07:18AM (#5431732)
I haven't yet deployed a big app with flask yet, but for my "playground" (Intranet App, very low load) I use Gunicorn (http://gunicorn.org/ ), which is extremely easy to set-up. For a deployment you would want to put nginx in front of it to serve static data.

If you just want do develop and test some things the server it comes with is absolutely enough and helps a lot with the debugging. Its as easy as typing "python myapp.py".

Re:The Flask Mega-Tutorial by pjscott on Sunday March 24, 2013 @03:36PM (#5433225)
For deployment, it's also important to have something like nginx in front of Gunicorn to buffer requests from slow clients. Otherwise, this sort of thing can DoS your server pretty bad:

http://ha.ckers.org/slowloris/

Re:The Flask Mega-Tutorial by nonpme on Sunday March 24, 2013 @07:32AM (#5431755)
I'll check out Gunicorn, thanks for the link.
Re:The Flask Mega-Tutorial by antihero on Sunday March 24, 2013 @08:11AM (#5431830)
Skip it and go with uWSGI ;) Emperor mode is fantastic.

Say you have /srv/mysite/uwsgi.ini and /srv/myothersite/uwsgi.ini (uwsgi config files for two different sites) you can run uwsgi --emperor /srv/*/uwsgi.ini and bam, it'll launch processes for all your sites.