Browse Source

hopefully fix brokenness with uwsgi

master
wes 7 years ago
parent
commit
a0758a8d95
  1. 2
      search.ini
  2. 1
      src/textbookExceptions.py
  3. 4
      src/website.py

2
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

1
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)

4
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)

Loading…
Cancel
Save