[Flask] Serving flask applications on AWS

Ann Pye mypyflask at gmail.com
Sat Sep 1 21:36:27 EDT 2018


Thank you so much Josh. I did checkout the same website as well (although
for a diff ubuntu version) and found this description most comprehensive
than all. I was also specifically looking for resources that go into the
"why" of what servers etc to choose etc in addition to the "how" to do. I
want to understand why I would choose nginx and/or gunicorn over other
combinations and "why" I may/may not need to change them in future. Any
info (books?/blogs?) serving that?

Best, AB

On Sat, Sep 1, 2018 at 6:12 PM Josh Stephens <bsdtux at gmail.com> wrote:

> Hi Ann,
>
>   That is a great question. It is my belief that most developers tend
> to deploy their flask applications utilizing Gunicorn and Nginx. Most
> of the time this will be facilitated    by starting the app using
> supervisord and then having nginx proxy to your application. The
> documentation that I tend to reference often is
>
> https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-gunicorn-and-nginx-on-ubuntu-18-04
> .
> This has been a generic write so that it can be done in any location
> like AWS / DigitalOcean and I believe this is what Heroku does as
> well.
>
> Best Regards,
> Josh Stephens
>
>
> On September 1, 2018 at 5:06:13 PM, Ann Pye (mypyflask at gmail.com) wrote:
> > Hi
> >
> > I have an app in Flask which is pretty lightweight (right now) and want
> to
> > know if using Gunicorn + nginx is standard for deployment on AWS EC2. As
> of
> > now I don't have (any/much) load-balancing or scalability requirements
> but
> > may have in future. I was looking for on/off-line resources that would
> help
> > make decisions around how to choose web server architectures for this
> kind
> > of setup (Python based applications- using nginx/AWS) and how to modify
> > when scaling ?
> > ( I have checked out the following-
> > flask.pocoo.org, Miguel Grinberg's book/blog (uses Heroku)
> >
> https://www.reddit.com/r/Python/comments/6ediwp/what_is_the_most_ideal_way_of_deploying_flask/
> > ,
> https://realpython.com/kickstarting-flask-on-ubuntu-setup-and-deployment/
> > and a few blogs/q&as on stackoverflow etc. )
> >
> > Thanks,
> > AB
> > _______________________________________________
> > Flask mailing list
> > Flask at python.org
> > https://mail.python.org/mailman/listinfo/flask
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/flask/attachments/20180901/d0b10b0e/attachment.html>


More information about the Flask mailing list