Guest User

Untitled

a guest
Feb 21st, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. namespace :deploy do
  2. task :restart do
  3. run "touch #{current_path}/tmp/restart.txt"
  4. end
  5. end
  6.  
  7. task :symlink_gems do
  8. run "mkdir -p #{shared_path}/gems"
  9. run "ln -nfs #{current_path}/gems #{shared_path}/gems"
  10. end
  11.  
  12. task :install_gems do
  13. run "cd #{current_path} && thor merb:gem:install"
  14. end
  15.  
  16. task :update_gems do
  17. run "cd #{current_path} && thor merb:gem:redeploy"
  18. end
  19.  
  20. after "deploy:symlink" do
  21. symlink_gems
  22. install_gems
  23. end
  24.  
  25. after :deploy do
  26. symlink_gems
  27. update_gems
  28. end
Add Comment
Please, Sign In to add comment