How do I run uwsgi with virtualenv

后端 未结 6 1977

I\'m currently developing my first real python flask project and am about to set up the build server to deploy the \"Latest Build\" which is built on every check-in.

6条回答
  •  星月不相逢
    2020-12-24 01:29

    As user995394 pointed out, there is a way to tell uWSGI use existing virtual environment. However, when I pass uWSGI option in form virtualenv = /full/path/to/my/virtualenv (it's from INI config) it complains about ImportError: No module named site. The workaround I found is that you launch uWSGI from folder where your virtualenv is and pass just virtualenv = my_virtualenv_name (i.e. path is relative).

    I use uWSGI 2.0.

提交回复
热议问题