This repository has been archived by the owner on Apr 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Capistrano updates for DLSS practices
- Loading branch information
1 parent
0847a0d
commit f515e02
Showing
8 changed files
with
80 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Note: capistrano reads this file AFTER config/deploy.rb | ||
|
||
set :default_env, { | ||
# ROBOT_ENVIRONMENT implies remote :deploy_to contains | ||
# config/environments/#{ROBOT_ENVIRONMENT}.rb | ||
# config/environments/robots_#{ROBOT_ENVIRONMENT}.rb | ||
'ROBOT_ENVIRONMENT' => 'integration' | ||
} | ||
|
||
server 'sul-sdr-services-dev.stanford.edu', user: 'sdr2service', roles: %w{app} | ||
|
||
Capistrano::OneTimeKey.generate_one_time_key! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
# Note: capistrano reads this file AFTER config/deploy.rb | ||
|
||
ENV['SDR_APP'] ||= fetch(:application) | ||
ENV['SDR_HOST'] ||= 'localhost' | ||
ENV['SDR_USER'] ||= ENV['USER'] | ||
set :default_env, { | ||
# ROBOT_ENVIRONMENT implies remote :deploy_to contains | ||
# config/environments/#{ROBOT_ENVIRONMENT}.rb | ||
# config/environments/robots_#{ROBOT_ENVIRONMENT}.rb | ||
'ROBOT_ENVIRONMENT' => 'development' | ||
} | ||
|
||
ENV['ROBOT_ENVIRONMENT'] = 'development' | ||
set :deploy_to, '/tmp/sdr-preservation-core' | ||
|
||
puts File.expand_path(__FILE__) | ||
require_relative 'server_settings' | ||
server 'localhost', user: ENV['USER'], roles: %w{app} | ||
|
||
Capistrano::OneTimeKey.generate_one_time_key! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Note: capistrano reads this file AFTER config/deploy.rb | ||
|
||
set :log_level, :info | ||
|
||
set :default_env, { | ||
# ROBOT_ENVIRONMENT implies remote :deploy_to contains | ||
# config/environments/#{ROBOT_ENVIRONMENT}.rb | ||
# config/environments/robots_#{ROBOT_ENVIRONMENT}.rb | ||
'ROBOT_ENVIRONMENT' => 'production' | ||
} | ||
|
||
server 'sul-sdr-services.stanford.edu', user: 'sdr2service', roles: %w{app} | ||
|
||
Capistrano::OneTimeKey.generate_one_time_key! |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Note: capistrano reads this file AFTER config/deploy.rb | ||
|
||
set :default_env, { | ||
# ROBOT_ENVIRONMENT implies remote :deploy_to contains | ||
# config/environments/#{ROBOT_ENVIRONMENT}.rb | ||
# config/environments/robots_#{ROBOT_ENVIRONMENT}.rb | ||
'ROBOT_ENVIRONMENT' => 'test' | ||
} | ||
|
||
server 'sdr-services-test.stanford.edu', user: 'sdr2service', roles: %w{app} | ||
server 'sdr-services-test2.stanford.edu', user: 'sdr2service', roles: %w{app} | ||
|
||
Capistrano::OneTimeKey.generate_one_time_key! |