Skip to content

Instantly share code, notes, and snippets.

@yrgoldteeth
Created October 21, 2011 18:16
Show Gist options
  • Save yrgoldteeth/1304535 to your computer and use it in GitHub Desktop.
Save yrgoldteeth/1304535 to your computer and use it in GitHub Desktop.

Assumptions

  • Ruby 1.9.2
  • Rails 3.1.0
  • Ubuntu Server 11.04

Server Setup

apt-get update
apt-get upgrade -y
apt-get install build-essential libxml2-dev libxslt1-dev git-core postgresql postgresql-client postgresql-server-dev-8.4 nginx libncurses5-dev libreadline5-dev imagemagick libmagickcore-dev libmagickwand-dev

useradd -m -g staff -s /bin/bash deployer
passwd deployer

# /etc/sudoers
%staff ALL=(ALL) ALL

wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p290.tar.gz
tar zxvf ruby-1.9.2-p290.tar.gz && cd ruby-1.9.2-p290
./configure
make && make install

wget http://production.cf.rubygems.org/rubygems/rubygems-1.8.10.tgz
tar zxvf rubygems-1.8.10.tgz && cd rubygems-1.8.10
ruby setup.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment