Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add passenger
  • Loading branch information
gregwebs committed Mar 15, 2011
1 parent 27b6db4 commit b74de08
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 5 deletions.
11 changes: 11 additions & 0 deletions pong/passenger.sh
@@ -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
6 changes: 6 additions & 0 deletions pong/passenger/conifg.ru
@@ -0,0 +1,6 @@
class RackApp
def call(env)
[200, {'Content-Type' => 'text/plain'}, ["PONG"]]
end
end
run RackApp.new
2 changes: 0 additions & 2 deletions pong/runall.sh
Expand Up @@ -6,6 +6,4 @@ mkdir -p results
./tornado.sh
./node.sh
#./nginx.sh
#./unicorn.sh
#./thin.sh
./goliath.sh
16 changes: 13 additions & 3 deletions ruby-install.txt
Expand Up @@ -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)

Expand All @@ -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.