-
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.
configure for AlmaLinux deploy (HOURS-126)
- ruby 3.2 - test against node 14 and 16 - update capybara and pull in matrix (removed from ruby 3 core) - update pry and mysql2 - update deploy targets and service user
- Loading branch information
Showing
7 changed files
with
29 additions
and
24 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 |
---|---|---|
|
@@ -4,20 +4,21 @@ | |
set :department, 'ldpd' | ||
set :instance, fetch(:department) | ||
set :application, 'hours' | ||
set :repo_name, "#{fetch(:department)}-#{fetch(:application)}" | ||
set :repo_name, "ldpd-hours" | ||
set :deploy_name, "#{fetch(:application)}_#{fetch(:stage)}" | ||
# used to run rake db:migrate, etc | ||
# Default value for :rails_env is fetch(:stage) | ||
set :rails_env, fetch(:deploy_name) | ||
# use the rvm wrapper | ||
set :rvm_custom_path, '~/.rvm-alma8' | ||
set :rvm_ruby_version, fetch(:deploy_name) | ||
|
||
set :repo_url, "[email protected]:cul/#{fetch(:repo_name)}.git" | ||
|
||
set :remote_user, "#{fetch(:instance)}serv" | ||
set :remote_user, "renserv" | ||
|
||
# Default deploy_to directory is /var/www/:application | ||
set :deploy_to, "/opt/passenger/#{fetch(:instance)}/#{fetch(:deploy_name)}" | ||
set :deploy_to, "/opt/passenger/#{fetch(:deploy_name)}" | ||
|
||
# Default value for :log_level is :debug | ||
set :log_level, :info | ||
|
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,3 +1,3 @@ | ||
server 'all-nginx-dev1.cul.columbia.edu', user: fetch(:remote_user), roles: %w(app db web) | ||
server 'diglib-rails-dev1.cul.columbia.edu', user: fetch(:remote_user), roles: %w(app db web) | ||
# Current branch is suggested by default in development | ||
ask :branch, `git rev-parse --abbrev-ref HEAD`.chomp |
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,3 +1,3 @@ | ||
server "ldpd-nginx-#{fetch(:stage)}1.cul.columbia.edu", user: fetch(:remote_user), roles: %w(app db web) | ||
server "diglib-rails-prod1.cul.columbia.edu", user: fetch(:remote_user), roles: %w(app db web) | ||
# In test/prod, deploy from release tags; most recent version is default | ||
ask :branch, proc { `git tag --sort=version:refname`.split("\n").last } |
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,3 +1,3 @@ | ||
server 'ldpd-nginx-test1.cul.columbia.edu', user: fetch(:remote_user), roles: %w(app db web) | ||
server 'diglib-rails-test1.cul.columbia.edu', user: fetch(:remote_user), roles: %w(app db web) | ||
# Current branch is suggested by default in development | ||
ask :branch, proc { `git tag --sort=version:refname`.split("\n").last } |