Guest User

Untitled

a guest
Feb 20th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. require "vlad"
  2.  
  3. set :application, "tanooki"
  4. # set :domain, "wantstobesurpised.com"
  5. set :domain, '67.207.131.232'
  6. set :deploy_to, "/var/www/tanooki"
  7. set :revision, 'origin/master'
  8. set :user, 'edward'
  9. set :repository, 'git://github.com/edward/tanooki.git'
  10. set :scm, 'git'
  11.  
  12. namespace :vlad do
  13. set :app_command, '/etc/init.d/apache2'
  14.  
  15. desc 'Restart Passenger'
  16. remote_task :start_app, :roles => :app do
  17. run "touch #{current_release}/tmp/restart.txt"
  18. end
  19.  
  20. desc 'Restart Apache'
  21. remote_task :start_web, :roles => :app do
  22. run "sudo #{app_command} restart"
  23. end
  24. end
Add Comment
Please, Sign In to add comment