Leave a comment


A great write up on setting up a production Rails server

Programming Tips

You have installed Ubuntu OS or VM image, go to terminal and just follow the steps to install updated Ruby, Rails, Postgresql. Apache and Phusion Passenger.

1. At first update your ubuntu with your latest packages

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential
sudo apt-get install python-software-properties
sudo apt-get install libssl-dev libreadline-dev

2. Installing Ruby

To install updated Ruby, go to the ruby site http://www.ruby-lang.org/en/downloads and find the latest Ruby download path like http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p327.tar.gz

cd /usr/local/src
sudo wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p327.tar.gz
tar -z -xf ruby-1.9.3-p327.tar.gz
cd ruby-1.9.2-p180
sudo ./configure --enable-shared
sudo make && sudo make install

To check the Ruby version use this command
ruby –v

3. Installing Ruby Gems

Go to the Ruby Gems site and find the rubygems download path

cd /usr/local/src
sudo wget http://production.cf.rubygems.org/rubygems/rubygems-1.8.24.tgz
sudo tar xzvf rubygems-1.8.24.tgz
cd rubygems-1.8.24
sudo ruby setup.rb
sudo gem install rubygems-update
sudo update_rubygems

4. Installing Ruby On Rails 3
$…

View original post 574 more words

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: