set :application, "leap-public-site" set :deploy_to, "/home/website/public-website" set :user, "website" set :scm, :git set :repository, "xxxxxxxxxxxxxxxxx" set :branch, "master" set :deploy_via, :remote_cache ssh_options[:forward_agent] = true #ssh_options[:port] = role :web, "leap.se" role :app, "leap.se" after "deploy:restart", "deploy:cleanup" namespace :deploy do task :start do ; end task :stop do ; end task :restart, :roles => :app, :except => { :no_release => true } do run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}" end end