From a61151de2e4e8058ed89aad98f1b504c1999fdf7 Mon Sep 17 00:00:00 2001 From: Maikel de Boer Date: Mon, 30 Oct 2017 20:12:11 +0100 Subject: [PATCH] Updated wsgi files to work with Python Virtualenv. Added requirements.txt. --- lg.wsgi | 8 ++++---- lgproxy.wsgi | 8 ++++---- requirements.txt | 12 ++++++++++++ 3 files changed, 20 insertions(+), 8 deletions(-) create mode 100644 requirements.txt diff --git a/lg.wsgi b/lg.wsgi index a815f94..ee6bc46 100644 --- a/lg.wsgi +++ b/lg.wsgi @@ -1,8 +1,8 @@ - import sys -import os -sitepath = os.path.realpath(os.path.dirname(__file__)) -sys.path.insert(0, sitepath) +activate_this = '/path/to/bird-lg/venv/bin/activate_this.py' +execfile(activate_this, dict(__file__=activate_this)) + +sys.path.insert(0, '/path/to/bird-lg') from lg import app as application diff --git a/lgproxy.wsgi b/lgproxy.wsgi index 706b58b..b63553f 100644 --- a/lgproxy.wsgi +++ b/lgproxy.wsgi @@ -1,8 +1,8 @@ - import sys -import os -sitepath = os.path.realpath(os.path.dirname(__file__)) -sys.path.insert(0, sitepath) +activate_this = '/path/to/bird-lg/venv/bin/activate_this.py' +execfile(activate_this, dict(__file__=activate_this)) + +sys.path.insert(0, '/path/to/bird-lg') from lgproxy import app as application diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..ee7f945 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,12 @@ +click==6.7 +dnspython==1.15.0 +Flask==0.12.2 +itsdangerous==0.24 +Jinja2==2.9.6 +MarkupSafe==1.0 +pydot==1.2.3 +pymemcache==1.4.3 +pyparsing==2.2.0 +python-memcached==1.58 +six==1.11.0 +Werkzeug==0.12.2