Skip to content

Instantly share code, notes, and snippets.

@mislav
Created May 26, 2009 17:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mislav/118173 to your computer and use it in GitHub Desktop.
Save mislav/118173 to your computer and use it in GitHub Desktop.
Update Ruby Enterprise Edition and Passenger
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