Skip to content

Instantly share code, notes, and snippets.

@v1nc3ntlaw
Created September 22, 2011 17:35
Show Gist options
  • Select an option

  • Save v1nc3ntlaw/1235420 to your computer and use it in GitHub Desktop.

Select an option

Save v1nc3ntlaw/1235420 to your computer and use it in GitHub Desktop.
debian_lenny_rvm_rails_server
apt-get -y install -y install build-essential git-core curl
sudo bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
echo -e '# load rvm for all users\nsource "/usr/local/rvm/scripts/rvm"' >> /etc/profile
apt-get -y install build-essential bison openssl libreadline5 libreadline5-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev libpq-dev libcurl4-openssl-dev
rvm install ree
rvm use ree
rvm gemset create rails31
rvm use --default ree@rails31
cat << EOF > .gemrc
---
:sources:
- http://gems.rubyforge.org
- http://gems.github.com
gem: --no-ri --no-rdoc
EOF
gem install bundler
gem install passenger
passenger-install-nginx-module \
--auto \
--prefix=/opt/nginx \
--nginx-source-dir=$NGINX_SOURCE \
--extra-configure-flags="--with-http_stub_status_module"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment