Permalink
Browse files

Add passenger_19 server type for Passenger under Ruby 1.9

  • Loading branch information...
1 parent b25bcae commit 90f36df949d666790f908482996a685bae8e6694 @bbrowning bbrowning committed Sep 30, 2011
Showing with 22 additions and 0 deletions.
  1. +22 −0 scripts/setup_server.sh
View
@@ -79,6 +79,23 @@ install_ree() {
cd ..
}
+install_ruby19() {
+ sudo yum install -y patch wget
+ wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p290.tar.gz
+ tar xzf ruby-1.9.2-p290.tar.gz
+ PREFIX=/mnt/data/ruby19
+ cd ruby-1.9.2-p290
+ cd ..
+ ./configure --prefix=$PREFIX
+ make
+ sudo make install
+ sudo mv /usr/bin/ruby /usr/bin/ruby.old
+ sudo cp $PREFIX/bin/ruby /usr/bin/
+ echo "export PATH=$PREFIX/bin:\$PATH" >> ~/.bash_profile
+ source ~/.bash_profile
+ cd ..
+}
+
case "$SERVER_TYPE" in
torquebox)
# Install necessary RPMs
@@ -125,6 +142,11 @@ case "$SERVER_TYPE" in
sudo gem install passenger
echo "Please log out and back in to finish the installation"
;;
+ passenger_19)
+ install_ruby19
+ sudo gem install passenger
+ echo "Please log out and back in to finish the installation"
+ ;;
unicorn)
install_ruby
sudo gem install unicorn rake

0 comments on commit 90f36df

Please sign in to comment.