-
Notifications
You must be signed in to change notification settings - Fork 2
/
Capfile
32 lines (22 loc) · 811 Bytes
/
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
# frozen_string_literal: true
# Load DSL and set up stages
require "capistrano/setup"
# Include default deployment tasks
require "capistrano/deploy"
# include bundler
require "capistrano/bundler"
# rails asset migrations
require "capistrano/rails/assets"
# run db migrations
require "capistrano/rails/migrations"
# deploy/restart task for passenger
require "capistrano/passenger"
# include console
require "capistrano/rails/console"
# Run whenever crontab update tasks
# https://github.com/javan/whenever/blob/master/lib/whenever/capistrano/v3/tasks/whenever.rake#L39-L40
require "whenever/capistrano"
require "capistrano/scm/git"
install_plugin Capistrano::SCM::Git
# Load custom tasks from `lib/capistrano/tasks` if you have any defined
Dir.glob("lib/capistrano/tasks/*.rake").each { |r| import r }