mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-04-28 09:22:38 +02:00
Tell Apache to add the budget directory to the python path (#215)
The path no longer needs to be modified in the .wsgi file
This commit is contained in:
parent
32f2339c47
commit
d0178ec6b6
2 changed files with 1 additions and 9 deletions
|
@ -2,7 +2,7 @@
|
|||
ServerAdmin admin@example.com
|
||||
ServerName ihatemoney.example.com
|
||||
# Uncomment the python-home option if you use a virtualenv
|
||||
WSGIDaemonProcess ihatemoney user=www-data group=www-data threads=5 # python-home=/path/to/your/venv
|
||||
WSGIDaemonProcess ihatemoney user=www-data group=www-data threads=5 python-path=/path/to/ihatemoney/budget # python-home=/path/to/your/venv
|
||||
WSGIScriptAlias / /path/to/ihatemoney/ihatemoney.wsgi
|
||||
ErrorLog /var/log/apache2/ihatemoney.example.com_error.log
|
||||
CustomLog /var/log/apache2/ihatemoney.example.com_access.log combined
|
||||
|
|
|
@ -1,9 +1 @@
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue