diff --git a/config/deploy.rb b/config/deploy.rb index 2538b194..95e04f12 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -60,7 +60,7 @@ namespace :deploy do end end - after :publishing, :restart do + task :update_cached_copy do on roles(:app), in: :sequence, wait: 5 do within shared_path.join('cached-copy') do execute :git, :pull @@ -68,6 +68,14 @@ namespace :deploy do end end + task :build_drb_counter do + + end + + after :publishing, :restart do + update_cached_copy + end + after :restart, :clear_cache do on roles(:web), in: :groups, limit: 3, wait: 10 do # Here we can do anything such as: