From 27b6db493e066914cdfb20009db4a785fed9353b Mon Sep 17 00:00:00 2001 From: Greg Weber Date: Tue, 15 Mar 2011 00:21:29 -0700 Subject: [PATCH] make sure production environment --- pong/rack.ru | 2 +- pong/thin.sh | 2 +- pong/unicorn.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pong/rack.ru b/pong/rack.ru index 313c1a0..529eec7 100644 --- a/pong/rack.ru +++ b/pong/rack.ru @@ -1,6 +1,6 @@ class RackApp def call(env) - [200, {'Content-Type' => 'text/plain'}, "PONG"] + [200, {'Content-Type' => 'text/plain'}, ["PONG"]] end end run RackApp.new diff --git a/pong/thin.sh b/pong/thin.sh index 3cee3e5..cd6848f 100755 --- a/pong/thin.sh +++ b/pong/thin.sh @@ -4,7 +4,7 @@ d=$(readlink -f $DIR) source lib.sh rvm use 1.9.2 -thin -p 3000 -R rack.ru -s 2 start & +thin -p 3000 -R rack.ru -e production start & benchmark diff --git a/pong/unicorn.sh b/pong/unicorn.sh index 98800f4..62df0b2 100755 --- a/pong/unicorn.sh +++ b/pong/unicorn.sh @@ -4,6 +4,6 @@ d=$(readlink -f $DIR) source lib.sh rvm use 1.9.2 -unicorn -p 3000 rack.ru & +unicorn -p 3000 -E production rack.ru & benchmark