From 5dadada4ae5c2f5f5e6855f705b2ddb14ed37ce8 Mon Sep 17 00:00:00 2001 From: Brad Van Vugt Date: Sat, 14 Feb 2015 13:20:38 -0800 Subject: [PATCH] fix wsgi path. --- Procfile | 2 +- app/gunicorn.py | 21 --------------------- 2 files changed, 1 insertion(+), 22 deletions(-) delete mode 100644 app/gunicorn.py diff --git a/Procfile b/Procfile index 0b19fcbeb..5783dd2df 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -web: gunicorn main.wsgi:application +web: gunicorn app.wsgi:application diff --git a/app/gunicorn.py b/app/gunicorn.py deleted file mode 100644 index 05eb2769f..000000000 --- a/app/gunicorn.py +++ /dev/null @@ -1,21 +0,0 @@ -""" gunicorn WSGI server configuration. """ - -from multiprocessing import cpu_count -from os import environ - - -def max_workers(): - # Gunicorn suggests (1-4 x $CORES) + 1 - # We can tweak this if we need. - return (cpu_count() * 2) + 1 - - -bind = '0.0.0.0:' + environ.get('PORT', '8080') - -workers = max_workers() -worker_class = 'gevent' # 'sync' -worker_connections = 1000 # Max active connections at any one time - -backlog = 2048 # Max queued connections at any one time -max_requests = 1000 # Recycle each worker after N requests -timeout = 25 # Kill requests after N seconds