forked from silverstripe-archive/deploynaut
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Capfile.template
38 lines (27 loc) · 1.01 KB
/
Capfile.template
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
36
37
38
# ---- Load the default capistrano deploy recipe ----
load 'deploy'
# ---- Set where the environment specific configuration are ----
set :config_root, '<config root>'
# ---- Load the recipes from the multiconfig gem ----
require 'capistrano/multiconfig'
# ---- load tasks from ./config dir ----
Dir['<base path>/deploynaut/ruby/*.rb'].each { |task| load(task) }
# ---- What directories are shared between releases ----
set :shared_children, %w(assets)
# ---- change the effective symlink to www ----
set :current_dir, 'www'
# ---- Keep at the most five releases ----
set :keep_releases, 5
# ---- Prevent asking for passwords ----
set :password, false
set :use_sudo, false
# ---- Prevent transfer of VCS files ----
set :copy_exclude, ["**/.git", "**/.svn", "**/.DS_Store"]
# ---- SSH options ----
ssh_options[:forward_agent] = true
ssh_options[:keys] = '<ssh key>'
default_run_options[:pty] = true
# ---- What SCM are we using ----
set :scm, "git"
# --- RoR behaviour override ---
set :normalize_asset_timestamps, false