-
Notifications
You must be signed in to change notification settings - Fork 0
/
Capfile
35 lines (27 loc) · 1.07 KB
/
Capfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# frozen_string_literal: true
# default deploy_config_path is 'config/deploy.rb'
set :deploy_config_path, 'cap/deploy.rb'
# default stage_config_path is 'config/deploy'
set :stage_config_path, 'cap/stages'
# previous variables MUST be set before 'capistrano/setup' # Load DSL and set up stages
require 'capistrano/setup'
# Include default deployment tasks
require 'capistrano/deploy'
require 'capistrano/bundler'
require 'capistrano/rails'
require 'capistrano/rails/assets'
require 'capistrano/rails/migrations'
require 'capistrano/rvm'
require 'capistrano/scm/git'
install_plugin Capistrano::SCM::Git
require 'capistrano/nginx'
install_plugin Capistrano::Nginx
set :rvm_type, :user
set :rvm_ruby_version, '2.7.0'
set :rvm_map_bins, %i[rake gem bundle ruby]
# Add the below line, see: https://stackoverflow.com/a/43021458/708807
require 'capistrano/puma'
# install_plugin Capistrano::Puma::Nginx
install_plugin Capistrano::Puma # load_hooks: false Default puma tasks
# Load custom tasks from `lib/capistrano/tasks` if you have any defined
Dir.glob('cap/tasks/*.rake').each { |r| import r }