Created
May 26, 2009 17:08
-
-
Save mislav/118173 to your computer and use it in GitHub Desktop.
Update Ruby Enterprise Edition and Passenger
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -e | |
# for a setup script see http://gist.github.com/32917 | |
PASSENGER=2.2.3 | |
REE="ruby-enterprise-1.8.6-20090610" | |
PREFIX=/opt/$REE | |
# git checkout of git://github.com/FooBarWidget/passenger.git | |
cd ~/passenger | |
git fetch origin | |
git checkout release-$PASSENGER | |
bin/passenger-install-apache2-module -a | |
# install ruby | |
cd /tmp | |
wget http://rubyforge.org/frs/download.php/58677/$REE.tar.gz -O- | tar xz | |
sudo ./$REE/installer -a $PREFIX --dont-install-useful-gems | |
sudo $PREFIX/bin/gem install `gem list --no-versions` | |
# bump apache config | |
sudo sed -r "s/ruby-enterprise-[0-9.-]+/$REE/g" -i.old /etc/apache2/mods-enabled/passenger.conf | |
sudo /etc/init.d/apache2 restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment