Skip to content

Commit

Permalink
Merge pull request #10 from sul-dlss/cap-updates
Browse files Browse the repository at this point in the history
Update capistrano per dept. conventions.
  • Loading branch information
Darren Hardy committed Jun 19, 2017
2 parents 0832e8d + c6bfaaf commit 08619e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions config/deploy.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# config valid only for current version of Capistrano
lock '3.4.0'

set :application, 'rwj_reporting'
set :repo_url, 'https://github.com/sul-dlss/rwj_reporting.git'
set :user, 'media'
set :deploy_to, '/home/media/rwj_reporting'

# Default branch is :master
ask :branch, `git rev-parse --abbrev-ref HEAD`.chomp
Expand Down
5 changes: 1 addition & 4 deletions config/deploy/production.rb → config/deploy/prod.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
set :home_directory, "/home/#{fetch(:user)}"
set :deploy_to, "#{fetch(:home_directory)}/#{fetch(:application)}"

# The only production server at the moment. A second will be added after the node is pupgraded
server 'libstream.stanford.edu', user: fetch(:user), roles: %w(app)
server 'libstream.stanford.edu', user: 'media', roles: %w(app)

Capistrano::OneTimeKey.generate_one_time_key!

Expand Down

0 comments on commit 08619e6

Please sign in to comment.