Skip to content

Instantly share code, notes, and snippets.

# Usage: rake name:task app_name
task PROD = "appname" # "task" here stubs to prevent rake errors with commandline
task STAGING = "appname-staging"
APP = ARGV[1] || PROD # default app
puts "=== APP #{APP} ==="
namespace :deploy do
@prawin
prawin / Ruby2 on Dreamhost
Last active March 7, 2016 05:56
RoR with Ruby 2.0.0 on Dreamhost
BUILD AND INSTALL RUBY FROM SOURCE
cd ~
mkdir build
cd build
wget http://cache.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p247.tar.gz
tar xzf ruby-2.0.0-p247.tar.gz
cd ruby-2.0.0-p247
./configure --prefix /home/adamish/ruby # <=== make sure you install to your own home directory
make install