diff options
author | elijah <elijah@riseup.net> | 2012-08-26 23:36:48 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2012-08-26 23:36:48 -0700 |
commit | f5dabd8e56f2d2af2fe848326c69dcce1d9efbb1 (patch) | |
tree | 1f598fa0c4bb91a6025310f23058c4b83faae057 /config | |
parent | df5ad9bbae7718217cb6c6a9f44c3c3b08b79229 (diff) |
improved deploy.rb
Diffstat (limited to 'config')
-rw-r--r-- | config/deploy.rb | 15 |
1 files changed, 10 insertions, 5 deletions
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 |