From 0a1b6f43925fda78372628f05fbd3ba2925aa8e0 Mon Sep 17 00:00:00 2001 From: boyska Date: Mon, 14 Apr 2014 22:37:16 +0200 Subject: [PATCH] Move to Paste as WSGI wrapper: dev/prod parity! --- server/.gitignore | 1 + server/default_config.py | 12 +----------- server/requirements.txt | 1 + 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/server/.gitignore b/server/.gitignore index 98e6ef6..b16e8f5 100644 --- a/server/.gitignore +++ b/server/.gitignore @@ -1 +1,2 @@ *.db +*.mp3 diff --git a/server/default_config.py b/server/default_config.py index 8305fb7..743f69c 100644 --- a/server/default_config.py +++ b/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' diff --git a/server/requirements.txt b/server/requirements.txt index 5f62ef6..73628f7 100644 --- a/server/requirements.txt +++ b/server/requirements.txt @@ -1,3 +1,4 @@ +Paste==1.7.5.1 SQLAlchemy==0.8.3 bottle==0.11.6 wsgiref==0.1.2