Skip to content

Instantly share code, notes, and snippets.

@benschwarz
Created January 1, 2009 14:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benschwarz/42286 to your computer and use it in GitHub Desktop.
Save benschwarz/42286 to your computer and use it in GitHub Desktop.
namespace :deploy do
task :restart do
run "touch #{current_path}/tmp/restart.txt"
end
end
task :symlink_gems do
run "mkdir -p #{shared_path}/gems"
run "ln -nfs #{current_path}/gems #{shared_path}/gems"
end
task :install_gems do
run "cd #{current_path} && thor merb:gem:install"
end
task :update_gems do
run "cd #{current_path} && thor merb:gem:redeploy"
end
after "deploy:symlink" do
symlink_gems
install_gems
end
after :deploy do
symlink_gems
update_gems
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment