diff --git a/config/deploy.rb b/config/deploy.rb index 6233229d8..30afb6063 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -53,6 +53,7 @@ namespace :deploy do # before :deploy, "deploy:run_tests" # Compile assets locally and then rsync after 'deploy:symlink:shared', 'deploy:compile_assets_locally' + after 'deploy:symlink:shared', 'deploy:beta_testers' after :finishing, 'deploy:cleanup' # Restart unicorn after 'deploy:publishing', 'deploy:restart' diff --git a/lib/capistrano/tasks/beta_testers.cap b/lib/capistrano/tasks/beta_testers.cap index cbbb25050..f83f81c78 100644 --- a/lib/capistrano/tasks/beta_testers.cap +++ b/lib/capistrano/tasks/beta_testers.cap @@ -6,6 +6,7 @@ namespace :deploy do execute"rsync -av ./config/beta-testers.txt #{role.user}@#{role.hostname}:#{shared_path}/config/beta-testers.txt;" end "chmod -R 755 #{shared_path}/config/beta-testers.txt" + execute "ln -nfs #{shared_path}/config/beta-testers.txt #{current_path}/config/beta-testers.txt" end end end