deploying flask app with uwsgi and flask-script Manager

隐身守侯 提交于 2019-12-04 08:19:58

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()'

I am also using the flask-script manager , so what i did was

  • created a wsgi.py .which was like.

    from app import * application = create_app("development")

  • then uwsgi --wsgi-file wsgi.py --callable application

Note: the callable is the flask object name in the wsgi.py.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!