Skip to content

Instantly share code, notes, and snippets.

View portertech's full-sized avatar

Sean Porter portertech

View GitHub Profile
cd /usr/local/src/
wget http://rubyforge.org/frs/download.php/70696/rubygems-1.3.7.tgz
tar zxvf rubygems-1.3.7.tgz
cd rubygems-1.3.7
sudo ruby setup.rb
sudo apt-get install build-essential libssl-dev libreadline5-dev zlib1g-dev
sudo chmod -R 777 /usr/local/src/
cd /usr/local/src/
wget http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p299.tar.gz
tar zxvf ruby-1.8.7-p299.tar.gz
curl 127.0.0.1
/usr/local/sbin/nginx
god status
ps -e | grep god
god -c /etc/god.conf
rails_root = ENV['RAILS_ROOT'] || "/path/to/your/application/current"
sudo nano /etc/god.conf
# Unicorn master is started as root, which is fine, but let's
# drop the workers to your user/group
begin
uid, gid = Process.euid, Process.egid
user, group = 'your_user_name', 'you_group_name'
# Help ensure your application will always spawn in the symlinked "current" directory that Capistrano sets up
working_directory "/path/to/your/application/current"