blob: 19aceb500a1aa0925c1d17c154094f22fb6eb2c7 (
plain) (
tree)
|
|
# config valid only for current version of Capistrano
lock '3.4.0'
set :application, 'registration'
set :repo_url, 'https://github.com/snake66/norsk-urskog-registrations.git'
set :deploy_to, '/home/norskurskog/www/registration'
set :linked_files, fetch(:linked_files, []).push('config.yml')
# Default value for linked_dirs is []
set :linked_dirs, fetch(:linked_dirs, []).push('public/uploads')
# 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
|