Browse Source

Move to Paste as WSGI wrapper: dev/prod parity!

boyska 10 years ago
parent
commit
0a1b6f4392
3 changed files with 3 additions and 11 deletions
  1. 1 0
      server/.gitignore
  2. 1 11
      server/default_config.py
  3. 1 0
      server/requirements.txt

+ 1 - 0
server/.gitignore

@@ -1 +1,2 @@
 *.db
+*.mp3

+ 1 - 11
server/default_config.py

@@ -1,17 +1,7 @@
 HOST = 'localhost'
 PORT = '8000'
-WSGI_SERVER = 'wsgiref'
+WSGI_SERVER = 'paste'
 WSGI_SERVER_OPTIONS = {}
-### Beware: we use global objects (the processqueue); you can't use
-### worker_class=sync in gunicorn, and probably other similar deployment won't
-### work
-### A dirty check is:
-### * go to /old.html
-### * create something
-### * go to /api/jobs
-### * refresh a lot and see if the result is always the same
-#WSGI_SERVER = 'gunicorn'
-#WSGI_SERVER_OPTIONS = {'workers': 4, 'worker_class': 'eventlet' }
 
 DEBUG = True
 DB_URI = 'sqlite:///techrec.db'

+ 1 - 0
server/requirements.txt

@@ -1,3 +1,4 @@
+Paste==1.7.5.1
 SQLAlchemy==0.8.3
 bottle==0.11.6
 wsgiref==0.1.2