diff --git a/doc/deployment/capistrano/deploy.rb b/doc/deployment/capistrano/deploy.rb index 9da550e2..bc03a3b0 100644 --- a/doc/deployment/capistrano/deploy.rb +++ b/doc/deployment/capistrano/deploy.rb @@ -11,10 +11,12 @@ set :use_sudo, false set :scm, :git set :rails_env, 'production' set :repository, "git@github.com:you/huginn-private.git" -set :branch, "master" +set :branch, ENV['BRANCH'] || "master" set :deploy_via, :remote_cache set :keep_releases, 5 +puts " Deploying #{branch}" + set :bundle_without, [:development] server "yourdomain.com", :app, :web, :db, :primary => true