Permalink
Browse files

add passenger

  • Loading branch information...
gregwebs committed Mar 15, 2011
1 parent 27b6db4 commit b74de08543f2c3b9e2be0b64a2f9384781dc14a7
Showing with 30 additions and 5 deletions.
  1. +11 −0 pong/passenger.sh
  2. +6 −0 pong/passenger/conifg.ru
  3. +0 −2 pong/runall.sh
  4. +13 −3 ruby-install.txt
View
@@ -0,0 +1,11 @@
+#!/bin/bash -x
+DIR="$( cd "$( dirname "$0" )" && pwd )"
+d=$(readlink -f $DIR)
+source lib.sh
+
+mkdir -p passenger/public
+mkdir -p passenger/tmp
+
+sudo /opt/nginx/sbin/nginx -c /opt/nginx/conf/nginx.conf
+
+benchmark
View
@@ -0,0 +1,6 @@
+class RackApp
+ def call(env)
+ [200, {'Content-Type' => 'text/plain'}, ["PONG"]]
+ end
+end
+run RackApp.new
View
@@ -6,6 +6,4 @@ mkdir -p results
./tornado.sh
./node.sh
#./nginx.sh
-#./unicorn.sh
-#./thin.sh
./goliath.sh
View
@@ -11,6 +11,8 @@ source ~/.bashrc
sudo apt-get install -y libssl-dev libreadline5-dev
rvm install 1.9.2 # ruby-1.9.2-p180 [ x86_64 ]
+gem install goliath thin unicorn
+
rvm install ree # ree-1.8.7-2011.03 [ x86_64 ]
# rvm install rbx # rbx-head (Sat Mar 12 09:05:08 PST 2011)
@@ -30,6 +32,14 @@ cd nginx-0.8.54
sh ./configure --prefix='/opt/nginx' --with-http_ssl_module --add-module='/home/ubuntu/.rvm/gems/ree-1.8.7-2011.03/gems/passenger-3.0.5/ext/nginx'
sudo make install
-# add to nginx config the output of passenger-config --root
-passenger_root /home/ubuntu/.rvm/gems/ree-1.8.7-2011.03/gems/passenger-3.0.5
-# use nginx config as per: http://pastie.org/867442
+# Change config file: /opt/nginx/conf/nginx.conf
+ # use nginx config as per: http://pastie.org/867442
+ #
+ # add to nginx config the output of passenger-config --root
+ passenger_root /home/ubuntu/.rvm/gems/ree-1.8.7-2011.03/gems/passenger-3.0.5
+ # change server config
+ server {
+ root /home/ubuntu/benchmarks/passenger;
+ passenger_enabled on;
+ listen 80;
+ }

0 comments on commit b74de08

Please sign in to comment.