From add16d3495468b320ba4aef17027cf6df198dc6d Mon Sep 17 00:00:00 2001 From: Pavel Chipiga Date: Wed, 9 Nov 2011 22:15:02 +0200 Subject: [PATCH] Apply multistage deployment. Refs #2162 --- config/deploy.rb | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/config/deploy.rb b/config/deploy.rb index ff05675a0..a35a6c36d 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -8,6 +8,10 @@ require "whenever/capistrano" set :rvm_type, :user +set :default_stage, "staging" +set :stages, %w(production staging) +require 'capistrano/ext/multistage' + # bundler bootstrap # main details @@ -21,18 +25,11 @@ set :branch, "master" set :scm, "git" set :user, "rosa" -set :domain, "195.19.76.12" # "npp-build.rosalab.ru" -set :port, 1822 set :use_sudo, false set :deploy_to, "/srv/#{application}" -role :app, domain -role :web, domain -role :db, domain, :primary => true - set :keep_releases, 3 - task :symlink_config_files do run "mkdir -p #{deploy_to}/#{shared_dir}/config" @@ -72,5 +69,4 @@ namespace :deploy do symlink_downloads_dir generate_roles end - end