Created
September 4, 2010 15:53
-
-
Save marshluca/565281 to your computer and use it in GitHub Desktop.
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
# 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