diaspora/config/deploy/production.rb
Alessio Caiazza 8632c8c40b capistrano deploy: let the user choose if running svc and svstat with sudo
Set svc_sudo to true in deploy_config.yml to use sudo.
The default value will be false, so that if the parameter is missing capistrano will behave exactly as before.
2012-02-04 17:59:30 +01:00

17 lines
478 B
Ruby

set :config, config_yaml['production']
set :deploy_to, config['deploy_to']
set :current_dir, config['current_dir']
set :rails_env, config['rails_env']
set :user, config['user']
if config['password']
set :password, config['password']
end
if config['branch']
set :branch, config['branch']
end
set :repository, config['repo']
server config['server'], :app, :web, :db, :primary => true
set :svc_sudo, (config['svc_sudo'] || false)
default_run_options[:pty] = true if svc_sudo