deploying flask app with uwsgi and flask-script Manager

前端 未结 2 2212
攒了一身酷
攒了一身酷 2021-02-20 14:07

Traditionally, I have configured the UWSGI configuration file to call an application like below:

mydirectory/uwsgi_application.ini
...
#python module to import
a         


        
2条回答
  •  旧时难觅i
    2021-02-20 14:52

    You don't use Flask-Script with uWSGI. You point it at the app directly. Or in your case, you point it at a call to the app factory. The simplest example is:

    uwsgi --module 'myapp:create_app()'
    

提交回复
热议问题