From f5dabd8e56f2d2af2fe848326c69dcce1d9efbb1 Mon Sep 17 00:00:00 2001 From: elijah Date: Sun, 26 Aug 2012 23:36:48 -0700 Subject: improved deploy.rb --- config/deploy.rb | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'config/deploy.rb') diff --git a/config/deploy.rb b/config/deploy.rb index 6c86a60..621c07f 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -1,24 +1,29 @@ -set :application, "leap-public-site" -set :deploy_to, "/home/website/public-website" +require "bundler/capistrano" + +set :application, "leap-website" +set :deploy_to, "/home/website/leap-website" set :user, "website" set :scm, :git -set :repository, "xxxxxxxxxxxxxxxxx" +set :repository, "ssh://gitolite@leap.se:22/leap-website" set :branch, "master" set :deploy_via, :remote_cache ssh_options[:forward_agent] = true -#ssh_options[:port] = +ssh_options[:port] = 22 role :web, "leap.se" role :app, "leap.se" +set :use_sudo, false + +set :keep_releases, 3 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')}" + run "#touch #{File.join(current_path,'tmp','restart.txt')}" end end -- cgit v1.2.3