Skip to content
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.

Commit

Permalink
Update capistrano to department standards
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Jun 19, 2017
1 parent 7eb3170 commit 6413a32
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
8 changes: 1 addition & 7 deletions config/deploy.rb
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
# config valid only for current version of Capistrano
lock '3.4.0'

set :application, 'modsulator-app'
set :repo_url, 'https://github.com/sul-dlss/modsulator-app'

# Prompt for the correct username
set :user, 'modsulator'

# Default branch is :master
# ask :branch, proc { `git rev-parse --abbrev-ref HEAD`.chomp }.call
set :deploy_to, "/opt/app/#{fetch(:user)}/#{fetch(:application)}"
set :deploy_to, "/opt/app/modsulator/modsulator-app"

# Default branch is :master
# ask :branch, `git rev-parse --abbrev-ref HEAD`.chomp
Expand Down
2 changes: 1 addition & 1 deletion config/deploy/production.rb → config/deploy/prod.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
server 'modsulator-app-prod.stanford.edu', user: fetch(:user), roles: %w{web db app}
server 'modsulator-app-prod.stanford.edu', user: 'modsulator', roles: %w{web db app}

set :rails_env, 'production'
set :bundle_without, %w(test development).join(' ')
Expand Down
2 changes: 1 addition & 1 deletion config/deploy/staging.rb → config/deploy/stage.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
server 'modsulator-app-stage.stanford.edu', user: fetch(:user), roles: %w{web db app}
server 'modsulator-app-stage.stanford.edu', user: 'modsulator', roles: %w{web db app}

set :rails_env, 'production'
set :bundle_without, %w(test development).join(' ')
Expand Down

0 comments on commit 6413a32

Please sign in to comment.