Skip to content

Instantly share code, notes, and snippets.

@leonardteo
leonardteo / install_ruby_passenger_nginx.sh
Created November 4, 2012 21:08
Install Ruby 1.9.3, Phusion Passenger and Nginx on Ubuntu 12.04 LTS with one command
#!/bin/bash
# PATH
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# Store the base dir
BASEDIR=$( cd $(dirname $0); pwd)
# Get all dependencies
sudo apt-get update