From d6ea8ea1dcb87292360f6f3155d72ea868b796f1 Mon Sep 17 00:00:00 2001 From: Francesco Siddi Date: Wed, 7 Oct 2015 20:01:42 +0200 Subject: [PATCH] New runserver.wsgi for running on Apache --- pillar/runserver.wsgi | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 pillar/runserver.wsgi diff --git a/pillar/runserver.wsgi b/pillar/runserver.wsgi new file mode 100644 index 00000000..844cca31 --- /dev/null +++ b/pillar/runserver.wsgi @@ -0,0 +1,13 @@ +activate_this = '/data/venv/bin/activate_this.py' +execfile(activate_this, dict(__file__=activate_this)) +import sys +#import logging +sys.path.append('/data/dev/pillar/pillar/') +from flup.server.fcgi import WSGIServer +from application import app as application + +#logging.basicConfig(filename='/tmp/error.log', level=logging.DEBUG) + +if __name__ == '__main__': + WSGIServer(application).run() +