Video – Inside Pivotal Labs

Deploying Rails 3 App – Step 1, Server Preparation

I use only LTS version of Ubuntu, so it’s Ubuntu 10.04 at this time. No, I don’t use RVM in production, it’s just my own personal preference.

1) Server Basics
sudo apt-get install build-essential bison openssl libreadline-dev zlib1g-dev libssl-dev libncurses5-dev ruby wget curl subversion

2) Install Ruby
svn export http://svn.ruby-lang.org/repos/ruby/tags/v1_9_2_0/ ruby
cd ruby
autoconf
./configure –prefix=/usr –enable-pthread
make
sudo make install

3) Install Git
wget http://kernel.org/pub/software/scm/git/git-1.7.3.1.tar.bz2
tar xvjf git-1.7.3.1.tar.bz2
cd git-1.7.3.1
./configure –prefix=/usr/local –without-tcltk
make
sudo make install

4) Install Bundler
sudo gem install bundler passenger

5) Install Nginx & Passenger
sudo passenger-install-nginx-module

After this, create a deploy account and generate ssh key for Git repository.

Next, capifying the app!

Powered by Olark