Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Add Comment
Please, Sign In to add comment