webdev.camp/config/deploy.rb

31 lines
929 B
Ruby

# config valid only for current version of Capistrano
lock '3.8.1'
set :application, 'webdev'
set :repo_url, 'git@github.com:webdev-camp/webdev.camp.git'
# Default deploy_to directory is /var/www/my_app_name
set :deploy_to, '/var/www/vhosts/webdev.camp'
# Default value for :linked_files is []
set :linked_files, fetch(:linked_files, []).push('config/database.yml', 'config/secrets.yml' , 'config/newrelic.yml')
# Default value for linked_dirs is []
# set :linked_dirs, fetch(:linked_dirs, []).push('log', 'tmp/pids', 'tmp/cache', 'tmp/sockets', 'vendor/bundle', 'public/system')
# Default value for default_env is {}
# set :default_env, { path: "/opt/ruby/bin:$PATH" }
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