Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add passenger_19 server type for Passenger under Ruby 1.9

  • Loading branch information...
commit 90f36df949d666790f908482996a685bae8e6694 1 parent b25bcae
Ben Browning authored

Showing 1 changed file with 22 additions and 0 deletions. Show diff stats Hide diff stats

  1. 22  scripts/setup_server.sh
22  scripts/setup_server.sh
@@ -79,6 +79,23 @@ install_ree() {
79 79
     cd ..
80 80
 }
81 81
 
  82
+install_ruby19() {
  83
+    sudo yum install -y patch wget
  84
+    wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p290.tar.gz
  85
+    tar xzf ruby-1.9.2-p290.tar.gz
  86
+    PREFIX=/mnt/data/ruby19
  87
+    cd ruby-1.9.2-p290
  88
+    cd ..
  89
+    ./configure --prefix=$PREFIX
  90
+    make
  91
+    sudo make install
  92
+    sudo mv /usr/bin/ruby /usr/bin/ruby.old
  93
+    sudo cp $PREFIX/bin/ruby /usr/bin/
  94
+    echo "export PATH=$PREFIX/bin:\$PATH" >> ~/.bash_profile
  95
+    source ~/.bash_profile
  96
+    cd ..
  97
+}
  98
+
82 99
 case "$SERVER_TYPE" in
83 100
     torquebox)
84 101
         # Install necessary RPMs
@@ -125,6 +142,11 @@ case "$SERVER_TYPE" in
125 142
         sudo gem install passenger
126 143
         echo "Please log out and back in to finish the installation"
127 144
         ;;
  145
+    passenger_19)
  146
+        install_ruby19
  147
+        sudo gem install passenger
  148
+        echo "Please log out and back in to finish the installation"
  149
+        ;;
128 150
     unicorn)
129 151
         install_ruby
130 152
         sudo gem install unicorn rake

0 notes on commit 90f36df

Please sign in to comment.
Something went wrong with that request. Please try again.