Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require "vlad"
- set :application, "tanooki"
- # set :domain, "wantstobesurpised.com"
- set :domain, '67.207.131.232'
- set :deploy_to, "/var/www/tanooki"
- set :revision, 'origin/master'
- set :user, 'edward'
- set :repository, 'git://github.com/edward/tanooki.git'
- set :scm, 'git'
- namespace :vlad do
- set :app_command, '/etc/init.d/apache2'
- desc 'Restart Passenger'
- remote_task :start_app, :roles => :app do
- run "touch #{current_release}/tmp/restart.txt"
- end
- desc 'Restart Apache'
- remote_task :start_web, :roles => :app do
- run "sudo #{app_command} restart"
- end
- end
Add Comment
Please, Sign In to add comment