Move to Paste as WSGI wrapper: dev/prod parity!
This commit is contained in:
parent
e58997a1cf
commit
0a1b6f4392
3 changed files with 3 additions and 11 deletions
1
server/.gitignore
vendored
1
server/.gitignore
vendored
|
@ -1 +1,2 @@
|
||||||
*.db
|
*.db
|
||||||
|
*.mp3
|
||||||
|
|
|
@ -1,17 +1,7 @@
|
||||||
HOST = 'localhost'
|
HOST = 'localhost'
|
||||||
PORT = '8000'
|
PORT = '8000'
|
||||||
WSGI_SERVER = 'wsgiref'
|
WSGI_SERVER = 'paste'
|
||||||
WSGI_SERVER_OPTIONS = {}
|
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
|
DEBUG = True
|
||||||
DB_URI = 'sqlite:///techrec.db'
|
DB_URI = 'sqlite:///techrec.db'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
Paste==1.7.5.1
|
||||||
SQLAlchemy==0.8.3
|
SQLAlchemy==0.8.3
|
||||||
bottle==0.11.6
|
bottle==0.11.6
|
||||||
wsgiref==0.1.2
|
wsgiref==0.1.2
|
||||||
|
|
Loading…
Reference in a new issue