Created
January 1, 2009 14:55
-
-
Save benschwarz/42286 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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