Skip to content

Instantly share code, notes, and snippets.

@sinefunc
Created June 9, 2010 15:51
Show Gist options
  • Save sinefunc/431685 to your computer and use it in GitHub Desktop.
Save sinefunc/431685 to your computer and use it in GitHub Desktop.
desc "Pull master from site, minify, and restart thin"
task :deploy do
cmds = [].tap do |cmd|
cmd.push 'git pull'
cmd.push 'thin -C config/thin.yml restart'
cmd.push 'MINIFY_SITE_URL=http://leafpile.sinefunc.com rake minify'
end
cmds.each do |cmd|
puts "-----> #{cmd}"
puts
puts `ssh leaf -- #{ cmd }`.gsub(/^/, ' ' * 7)
puts
end
puts "-----> Deployed!"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment