aboutsummaryrefslogtreecommitdiff
path: root/ihatemoney.wsgi
diff options
context:
space:
mode:
author0livd <0livd@users.noreply.github.com>2017-04-10 17:46:39 +0100
committerJocelynDelalande <JocelynDelalande@users.noreply.github.com>2017-04-10 18:46:39 +0200
commitcdf903383a0fb2df08f40310bbbe3659362184e1 (patch)
tree11a85dd51abdc6268f4708c0b89502fc22202d65 /ihatemoney.wsgi
parentdeff0f8bc3d667bbe0dd92ebceef34507895fdef (diff)
downloadihatemoney-mirror-cdf903383a0fb2df08f40310bbbe3659362184e1.zip
ihatemoney-mirror-cdf903383a0fb2df08f40310bbbe3659362184e1.tar.gz
ihatemoney-mirror-cdf903383a0fb2df08f40310bbbe3659362184e1.tar.bz2
Add the possibilty to run ihatemoney via Apache mod_wsgi (#191)
Add the possibilty to run ihatemoney via Apache mod_wsgi ihatemoney.wsgi is the entry point for mod_wsgi. A virtualenv can be activated if its path is specified as an env var in the apache virtual host file
Diffstat (limited to 'ihatemoney.wsgi')
-rw-r--r--ihatemoney.wsgi9
1 files changed, 9 insertions, 0 deletions
diff --git a/ihatemoney.wsgi b/ihatemoney.wsgi
new file mode 100644
index 0000000..fbaa134
--- /dev/null
+++ b/ihatemoney.wsgi
@@ -0,0 +1,9 @@
+import sys
+import os
+
+__HERE__ = os.path.dirname(os.path.abspath(__file__))
+
+# Add the budget directory to the path so we can then import from run
+sys.path.insert(0, os.path.join(__HERE__, 'budget'))
+
+from run import app as application