better cached copy deployment

This commit is contained in:
2015-02-10 18:08:42 +01:00
parent 66eb59844b
commit 0513acd906
+9 -1
View File
@@ -60,7 +60,7 @@ namespace :deploy do
end end
end end
after :publishing, :restart do task :update_cached_copy do
on roles(:app), in: :sequence, wait: 5 do on roles(:app), in: :sequence, wait: 5 do
within shared_path.join('cached-copy') do within shared_path.join('cached-copy') do
execute :git, :pull execute :git, :pull
@@ -68,6 +68,14 @@ namespace :deploy do
end end
end end
task :build_drb_counter do
end
after :publishing, :restart do
update_cached_copy
end
after :restart, :clear_cache do after :restart, :clear_cache do
on roles(:web), in: :groups, limit: 3, wait: 10 do on roles(:web), in: :groups, limit: 3, wait: 10 do
# Here we can do anything such as: # Here we can do anything such as: