config valid only for current version of Capistrano lock set applicati

 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
# config valid only for current version of Capistrano
lock '3.3.5'
set :application, 'playrooms'
set :repo_url, 'ssh://git@domain.in/portal.git'
server "playrooms", user: "deploy", roles: %w{web app}
set :log_level, :info
set :keep_releases, 10
set :linked_files, fetch(:linked_files, []).push('application/config/local.php')
set :linked_dirs, fetch(:linked_dirs, []).push('application/runtime','www/assets')
namespace :deploy do
desc 'php-fpm reload'
task :phpfpm_reload do
on roles(:web) do
execute :sudo, '/etc/init.d/php5-fpm', 'reload'
end
end
after :finishing, 'deploy:phpfpm_reload'
#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