Skip to content

Instantly share code, notes, and snippets.

@justinvt
Created June 12, 2009 15:58
Show Gist options
  • Save justinvt/128722 to your computer and use it in GitHub Desktop.
Save justinvt/128722 to your computer and use it in GitHub Desktop.
require 'config/deploy/ferret.rb'
set :application, "nooknack"
set :rails_env, "ec2"
set :repository, "[email protected]:justinvt/nooknack.git"
set :branch, "master"
role :web, "ec2-12-xx-xx-xx.z-1.compute-1.amazonaws.com"
role :app, "ec2-34-xx-xx-xx.z-1.compute-1.amazonaws.com"
role :db, "ec2-56-xx-xx-xx.z-1.compute-1.amazonaws.com", :primary => true
role :memcache, "ec2-12-xx-xx-xx.z-1.compute-1.amazonaws.com"
before "deploy", "repair_image_magick"
task :repair_image_magick, :roles=>[:app] do
sudo "aptitude update "
sudo "aptitude install imagemagick"
sudo "apt-get install librmagick-ruby --yes"
sudo "apt-get install libmagick9-dev --yes"
sudo "gem install rmagick"
end
task :install_curb, :roles=>[:app, :memcache] do
sudo "apt-get install libcurl3 --yes"
sudo "apt-get install libcurl3-gnutls --yes"
sudo "apt-get install libcurl4-openssl-dev --yes"
sudo "gem install curb"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment