Skip to content

Commit

Permalink
Add host and user to the deploy configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Feb 23, 2016
1 parent ecdce74 commit a20649b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@

set :application, 'sul-directory'
set :repo_url, 'https://github.com/sul-dlss/sul-directory.git'
set :deploy_host, ask("Server", 'e.g. hostname with no ".stanford.edu" or server node designator')
ask :user, proc { `whoami`.chomp }.call
set :user, 'directory'

# Default branch is :master
set :branch, 'master'
Expand Down
2 changes: 1 addition & 1 deletion config/deploy/development.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
server "#{fetch(:deploy_host)}.stanford.edu", user: fetch(:user), roles: %w{web db app}
server "sul-directory-dev.stanford.edu", user: fetch(:user), roles: %w{web db app}

Capistrano::OneTimeKey.generate_one_time_key!
set :rails_env, "development"
2 changes: 1 addition & 1 deletion config/deploy/production.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
server "#{fetch(:deploy_host)}.stanford.edu", user: fetch(:user), roles: %w{web db app}
server "sul-directory-prod.stanford.edu", user: fetch(:user), roles: %w{web db app}

Capistrano::OneTimeKey.generate_one_time_key!
set :rails_env, "production"

0 comments on commit a20649b

Please sign in to comment.