From a0758a8d9576496be4b34878beb8627651c8fad0 Mon Sep 17 00:00:00 2001 From: wes Date: Fri, 27 Jan 2017 18:24:20 -0500 Subject: [PATCH] hopefully fix brokenness with uwsgi --- search.ini | 2 ++ src/textbookExceptions.py | 1 - src/website.py | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/search.ini b/search.ini index bfa990e..91274d8 100755 --- a/search.ini +++ b/search.ini @@ -3,8 +3,10 @@ wsgi_file = /srv/http/build/website.py chdir = /srv/http/build/ module = website callable = app +virtualenv = /srv/http/build/venv uid = http gid = http +plugin = python master = true processes = 5 diff --git a/src/textbookExceptions.py b/src/textbookExceptions.py index 7e93fbb..ecf8b11 100644 --- a/src/textbookExceptions.py +++ b/src/textbookExceptions.py @@ -20,5 +20,4 @@ class UnIndexable(Exception): %s There could be several reasons why, my best guess is that %s We need at least the course code, title, and one or more sections to index - """ % (course, message) diff --git a/src/website.py b/src/website.py index 6d48b3c..04b1ec8 100755 --- a/src/website.py +++ b/src/website.py @@ -119,5 +119,5 @@ def ClassSearch(configfile=None): app = ClassSearch("./appconfig") -#if __name__ == "__main__": - #ClassSearch("./appconfig").run(host="localhost", port=8001, debug=True) +if __name__ == "__main__": + ClassSearch("./appconfig").run(host="localhost", port=8001, debug=True)