summaryrefslogtreecommitdiff
path: root/config/deploy.rb
blob: 49de5103572045131dcbd7a15af0f34581182969 (plain)
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
# config valid only for current version of Capistrano
lock '3.11.0'

set :repo_url, 'https://github.com/RedstonerServer/redstoner.com'

set :scm, :git

set :ssh_options, { forward_agent: true }

set :default_environment, {
  'PATH' => "$HOME/.rbenv/shims:$HOME/.rbenv/bin:$PATH"
}

set :keep_releases, 5

set :deploy_to, -> { "/var/www/#{fetch(:application)}" }

set :rbenv_ruby, '2.5.0-dev'

set :bundle_without, %w{development test}.join(' ')

# Default value for linked_dirs is []
set :linked_dirs, fetch(:linked_dirs, []).push('bin', 'log', 'tmp/pids', 'tmp/cache', 'tmp/sockets', 'vendor/bundle', 'public/system')

namespace :deploy do
  after :publishing, :restart
end