Skip to content

Commit

Permalink
Merge pull request #53 from sul-dlss/deploy-tweaks
Browse files Browse the repository at this point in the history
cap deploy prompts for branch and does info level logging
  • Loading branch information
Jessie Keck committed May 24, 2016
2 parents d22a35f + 9d18c23 commit 8fdef86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
set :repo_url, 'https://github.com/sul-dlss/digital_stacks_rails.git'

# Default branch is :master
# ask :branch, proc { `git rev-parse --abbrev-ref HEAD`.chomp }.call
ask :branch, proc { `git rev-parse --abbrev-ref HEAD`.chomp }.call

# Default deploy_to directory is /var/www/my_app
set :deploy_to, '/opt/app/stacks/stacks'
Expand All @@ -17,7 +17,7 @@
# set :format, :pretty

# Default value for :log_level is :debug
# set :log_level, :debug
set :log_level, :info

# Default value for :pty is false
# set :pty, true
Expand All @@ -34,4 +34,4 @@
# Default value for keep_releases is 5
# set :keep_releases, 5

before 'deploy:publishing', 'squash:write_revision'
before 'deploy:publishing', 'squash:write_revision'
2 changes: 0 additions & 2 deletions config/deploy/staging.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@

Capistrano::OneTimeKey.generate_one_time_key!
set :rails_env, "production"
set :branch, ENV["BRANCH"] || "master"

0 comments on commit 8fdef86

Please sign in to comment.