[Flask] ngninx + gunicorn + flask + auto-reload

Jerry Mccreary jerry.mccreary at mac.com
Sun Jan 28 14:27:10 EST 2018


I compiled a list of instructions for deploying with Phusion Passenger, instead of Gunicorn. It may be of some help.

The gist is that, once set up, updates are relatively painless:

1) files are transferred using git, then 
2) calling nginx reload. 

There are probably more automated ways.

https://macfire.github.io/devops16/

--
Jerry

> On Jan 28, 2018, at 12:45 PM, Christophe BAL (via GMAIL) <projetmbc at gmail.com> wrote:
> 
> Thanks a lot for all your answers.
> 
> I will follow your advices.
> 
>> Le 28/01/2018 à 17:21, Jeffrey Levesque a écrit :
>> My project uses flask + nginx + gunicorn + Travis CI:
>> 
>> - https://github.com/jeff1evesque/machine-learning
>> 
>> 
>> Thank you,
>> 
>> Jeff Levesque
>> https://github.com/jeff1evesque
>> 
>> On Jan 26, 2018, at 3:47 PM, Gergely Polonkai <gergely at polonkai.eu> wrote:
>> 
>>> You may want to take a look into containers, PaaS providers, and CI/CD in general.
>>> 
>>> The exact solution here depends on a lot of things. Are you hosting yourself? Do you manage complete machines (either actual hardware or a VPS) or just upload your app somewhere? Are you familiar with containerisation and similar concepts?
>>> 
>>> Without all this info (and maybe more) itʼs hard to help.
>>> 
>>> 
>>>> On Fri, Jan 26, 2018, 21:27 Christophe BAL (via GMAIL) <projetmbc at gmail.com> wrote:
>>>> Thanks for the link but is is said that this setting is intended for
>>>> development.
>>>> 
>>>> Is there another way to have a continous integration of my web app ?
>>>> 
>>>> 
>>>> Le 26/01/2018 à 20:25, Ziirish a écrit :
>>>> > * On Friday, January 26, 2018 at 07:48 PM +0100, Christophe BAL (via GMAIL) <projetmbc at gmail.com> wrote:
>>>> >> Hello.
>>>> >>
>>>> >> I have started a toy Flask *app.py* using ngninx and gunicorn on a VPS. This
>>>> >> are my first steps on a VPS...
>>>> >>
>>>> >> I have updated *app.py* but I don't know how to restart
>>>> >> ngninx-gunicorn-Flask such as to have my new *app.py* used on my VPS.
>>>> >>
>>>> >> How can I acheive this ?
>>>> > I suppose this is what you are looking for:
>>>> > http://docs.gunicorn.org/en/19.0/settings.html#reload
>>>> 
>>>> --
>>>> Christophe BAL
>>>> Enseignant Agrégé de Mathématiques
>>>> Programmeur Python Amateur
>>>> 
>>>> _______________________________________________
>>>> Flask mailing list
>>>> Flask at python.org
>>>> https://mail.python.org/mailman/listinfo/flask
>>> _______________________________________________
>>> Flask mailing list
>>> Flask at python.org
>>> https://mail.python.org/mailman/listinfo/flask
> 
> -- 
> Christophe BAL
> Enseignant Agrégé de Mathématiques
> Programmeur Python Amateur
> _______________________________________________
> 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/20180128/05a83f0b/attachment.html>


More information about the Flask mailing list