Created
September 22, 2011 17:35
-
-
Save v1nc3ntlaw/1235420 to your computer and use it in GitHub Desktop.
debian_lenny_rvm_rails_server
This file contains hidden or 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
| 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