thorpedosg

Untitled

Jul 24th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.  
  3. namespace :deploy do
  4. task :start, :roles => :app do
  5. run "touch #{current_release}/tmp/restart.txt"
  6. end
  7.  
  8.  
  9. task :submodules do
  10. run "git submodule init && git submodule update"
  11. end
  12.  
  13. desc "Fix permissions"
  14. task :persmissions do
  15. run "chown #{current_release} -R domain:psaserv ."
  16. end
  17.  
  18. task :restart, :roles => :app do
  19. run "touch #{current_release}/tmp/restart.txt"
  20. end
  21.  
  22. task :stop, :roles => :app do
  23. # Do nothing.
  24. end
  25. end
Add Comment
Please, Sign In to add comment