-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
5 changed files
with
113 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,28 @@ | ||
# Load DSL and set up stages | ||
require 'capistrano/setup' | ||
|
||
# Include default deployment tasks | ||
require 'capistrano/deploy' | ||
|
||
# Include tasks from other gems included in your Gemfile | ||
# | ||
# For documentation on these, see for example: | ||
# | ||
# https://github.com/capistrano/rvm | ||
# https://github.com/capistrano/rbenv | ||
# https://github.com/capistrano/chruby | ||
# https://github.com/capistrano/bundler | ||
# https://github.com/capistrano/rails | ||
# https://github.com/capistrano/passenger | ||
# | ||
# require 'capistrano/rvm' | ||
# require 'capistrano/rbenv' | ||
# require 'capistrano/chruby' | ||
require 'capistrano/bundler' | ||
require 'dlss/capistrano' | ||
# require 'capistrano/rails/assets' | ||
# require 'capistrano/rails/migrations' | ||
# require 'capistrano/passenger' | ||
|
||
# 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
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,35 @@ | ||
# config valid only for current version of Capistrano | ||
lock '3.4.0' | ||
|
||
set :application, 'rwj_reporting' | ||
set :repo_url, 'https://github.com/sul-dlss/rwj_reporting.git' | ||
set :user, 'media' | ||
|
||
# Default branch is :master | ||
ask :branch, `git rev-parse --abbrev-ref HEAD`.chomp | ||
|
||
# Default value for :log_level is :debug | ||
set :log_level, :info | ||
|
||
# Default value for :linked_files is [] | ||
set :linked_files, fetch(:linked_files, []).push('config/settings.yml') | ||
|
||
# Default value for linked_dirs is [] | ||
# set :linked_dirs, fetch(:linked_dirs, []).push('log', 'tmp/pids', 'tmp/cache', 'tmp/sockets', 'vendor/bundle', 'public/system') | ||
|
||
# Default value for default_env is {} | ||
# set :default_env, { path: "/opt/ruby/bin:$PATH" } | ||
|
||
# Default value for keep_releases is 5 | ||
# set :keep_releases, 5 | ||
|
||
namespace :deploy do | ||
after :restart, :clear_cache do | ||
on roles(:web), in: :groups, limit: 3, wait: 10 do | ||
# Here we can do anything such as: | ||
# within release_path do | ||
# execute :rake, 'cache:clear' | ||
# 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,9 @@ | ||
set :home_directory, "/home/#{fetch(:user)}" | ||
set :deploy_to, "#{fetch(:home_directory)}/#{fetch(:application)}" | ||
|
||
# The only production server at the moment. A second will be added after the node is pupgraded | ||
server 'libstream.stanford.edu', user: fetch(:user), roles: %w(app) | ||
|
||
Capistrano::OneTimeKey.generate_one_time_key! | ||
|
||
set :bundle_without, %w(development test).join(' ') |