Facilitate installation for dispatcher

This commit is contained in:
Xavier Bustamante Talavera 2019-01-23 18:46:08 +01:00
parent ca7033f6df
commit 9ec9fb0964
2 changed files with 7 additions and 1 deletions

View File

@ -6,7 +6,7 @@ Define servername api.devicetag.io
# The domain used to access the server # The domain used to access the server
Define appdir /home/devicetag/sites/${servername}/source/ Define appdir /home/devicetag/sites/${servername}/source/
# The path where the app directory is. Apache must have access to this folder. # The path where the app directory is. Apache must have access to this folder.
Define wsgipath ${appdir}/wsgi.wsgi Define wsgipath ${appdir}/wsgi.py
# The location of the .wsgi file # The location of the .wsgi file
Define pyvenv ${appdir}../venv/ Define pyvenv ${appdir}../venv/
# The path where the virtual environment is (the folder containing bin/activate) # The path where the virtual environment is (the folder containing bin/activate)

6
examples/wsgi.py Normal file
View File

@ -0,0 +1,6 @@
"""
An exemplifying Apache python WSGI to a Devicehub app with a dispatcher.
"""
from ereuse_devicehub.dispatchers import PathDispatcher
application = PathDispatcher()