From 10443fffb04ecc47457e792ed0da30d9c75eb7c2 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Thu, 29 Dec 2011 13:22:46 -0500 Subject: [PATCH 1/2] gevent --- Procfile | 2 +- requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Procfile b/Procfile index e2497c2..3a99997 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -web: newrelic-admin run-program gunicorn httpbin:app -b "0.0.0.0:$PORT" \ No newline at end of file +web: gunicorn httpbin:app -b "0.0.0.0:$PORT" -w 16 -k gevent \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 0a34745..5455728 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,4 +8,4 @@ wsgiref==0.1.2 decorator==3.3.2 omnijson==0.1.2 gunicorn==0.12.2 -newrelic \ No newline at end of file +gevent \ No newline at end of file From d0e6f7023bd4d96483efede143480e2ca5ece161 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Thu, 29 Dec 2011 13:25:52 -0500 Subject: [PATCH 2/2] kill after 3 seconds --- Procfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Procfile b/Procfile index 3a99997..c63e4dc 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -web: gunicorn httpbin:app -b "0.0.0.0:$PORT" -w 16 -k gevent \ No newline at end of file +web: gunicorn httpbin:app -b "0.0.0.0:$PORT" -w 16 -k gevent -t 3 \ No newline at end of file