librelist archives

« back to archive

App Factories + uWSGI Deployment

App Factories + uWSGI Deployment

From:
Calvin Young
Date:
2012-09-12 @ 17:07
Hi all,

Does anyone deploy to uWSGI with the app factory pattern?  If so, what's
the callable that you pass into uWSGI?

Thanks!

Re: [flask] App Factories + uWSGI Deployment

From:
Christoph Heer
Date:
2012-09-12 @ 17:17
Hi Calvin,

the simples way is to create a wsgi.py and run inside of them create_app.


from myflaskproject import create_app

app = create_app()


Best regards,
Christoph

On 12.09.2012, at 19:09, Calvin Young <calvinwyoung@gmail.com> wrote:

> Hi all,
>
> Does anyone deploy to uWSGI with the app factory pattern?  If so, what's
the callable that you pass into uWSGI?
>
> Thanks!

Re: [flask] App Factories + uWSGI Deployment

From:
Calvin Young
Date:
2012-09-12 @ 17:26
Ah makes sense, thanks Christoph!

Calvin

On Wed, Sep 12, 2012 at 10:17 AM, Christoph Heer <
christoph.heer@googlemail.com> wrote:

> Hi Calvin,
>
> the simples way is to create a wsgi.py and run inside of them create_app.
>
>
> from myflaskproject import create_app
>
> app = create_app()
>
>
> Best regards,
> Christoph
>
> On 12.09.2012, at 19:09, Calvin Young <calvinwyoung@gmail.com> wrote:
>
> > Hi all,
> >
> > Does anyone deploy to uWSGI with the app factory pattern?  If so, what's
> the callable that you pass into uWSGI?
> >
> > Thanks!
>

Re: [flask] App Factories + uWSGI Deployment

From:
Matt Wright
Date:
2012-09-12 @ 17:15
The callable name and the file containing the callable is configurable for
uWSGI via the command line or a supported uWSGI config file.

On Wed, Sep 12, 2012 at 1:07 PM, Calvin Young <calvinwyoung@gmail.com>wrote:

> Hi all,
>
> Does anyone deploy to uWSGI with the app factory pattern?  If so, what's
> the callable that you pass into uWSGI?
>
> Thanks!
>