-
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.
- Loading branch information
1 parent
7f680e0
commit d0d53bd
Showing
6 changed files
with
91 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Load DSL and set up stages | ||
require "capistrano/setup" | ||
|
||
# Include default deployment tasks | ||
require "capistrano/deploy" | ||
|
||
require "capistrano/scm/git" | ||
install_plugin Capistrano::SCM::Git | ||
|
||
#set :dist, 'dist' | ||
|
||
# Load custom tasks from `lib/capistrano/tasks` if you have any defined | ||
Dir.glob("lib/capistrano/tasks/*.rake").each { |r| import r } |
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,5 @@ | ||
source 'https://rubygems.org' | ||
|
||
group :development do | ||
gem "capistrano", require: false | ||
end |
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,30 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
airbrussh (1.5.0) | ||
sshkit (>= 1.6.1, != 1.7.0) | ||
capistrano (3.11.2) | ||
airbrussh (>= 1.0.0) | ||
i18n | ||
rake (>= 10.0.0) | ||
sshkit (>= 1.9.0) | ||
concurrent-ruby (1.2.2) | ||
i18n (1.14.1) | ||
concurrent-ruby (~> 1.0) | ||
net-scp (4.0.0) | ||
net-ssh (>= 2.6.5, < 8.0.0) | ||
net-ssh (7.2.0) | ||
rake (13.0.6) | ||
sshkit (1.21.5) | ||
net-scp (>= 1.1.2) | ||
net-ssh (>= 2.8.0) | ||
|
||
PLATFORMS | ||
x86_64-darwin-21 | ||
x86_64-darwin-22 | ||
|
||
DEPENDENCIES | ||
capistrano | ||
|
||
BUNDLED WITH | ||
2.4.10 |
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,33 @@ | ||
# config valid for current version and patch releases of Capistrano | ||
lock "~> 3.17.1" | ||
|
||
set :branch, ENV['BRANCH'] || 'main' | ||
|
||
set :application, "allsearch_frontend" | ||
set :repo_url, "https://github.com/pulibrary/allsearch_frontend.git" | ||
|
||
# Default branch is :master | ||
# ask :branch, `git rev-parse --abbrev-ref HEAD`.chomp | ||
|
||
# Default deploy_to directory is /var/www/my_app_name | ||
set :deploy_to, "/opt/allsearch_frontend" | ||
|
||
namespace :deploy do | ||
desc "Run yarn install" | ||
task :yarn_install do | ||
on roles(:web) do | ||
within release_path do | ||
execute("cd #{release_path} && yarn install") | ||
end | ||
end | ||
end | ||
desc "Create dist" | ||
task :yarn_build do | ||
on roles(:web) do | ||
within release_path do | ||
execute("cd #{release_path} && yarn build") | ||
end | ||
end | ||
end | ||
end | ||
|
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,5 @@ | ||
set :stage, :production | ||
set :node_env, 'production' | ||
|
||
server "allsearch-prod1", user: "deploy", roles: %w{app web} | ||
server "allsearch-prod2", user: "deploy", roles: %w{app web} |
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,5 @@ | ||
set :stage, :staging | ||
set :node_env, 'staging' | ||
|
||
server "allsearch-staging1", user: "deploy", roles: %w{app web} | ||
server "allsearch-staging2", user: "deploy", roles: %w{app web} |