Skip to content

Instantly share code, notes, and snippets.

@marshluca
Created September 4, 2010 15:53
Show Gist options
  • Save marshluca/565281 to your computer and use it in GitHub Desktop.
Save marshluca/565281 to your computer and use it in GitHub Desktop.
# remove all existed ruby
rm -rf /usr/lib/ruby
wget http://rubyforge.org/frs/download.php/71096/ruby-enterprise-1.8.7-2010.02.tar.gz
tar xzvf ruby-enterprise-1.8.7-2010.02.tar.gz
./ruby-enterprise-1.8.7-2010.02/installer
# custom the location of ruby installation: /usr/lib/ruby
# ruby, passenger, rake, ri, rdoc, rubygem, rack, rails ... will be installed
# install nginx to: /opt/nginx
passenger-install-nginx-module
gem install mongo
gem install mongo_mapper
gem install rails -v=2.3.8
gem install rack -v=1.1.0
# configure the database.yml
# install mongodb and configure the data and log
# configure the nginx for app
/etc/init.d/nginx start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment