symlink beta-testers file after a deploy

This commit is contained in:
rgarcia
2015-08-31 14:03:08 +02:00
parent f6294a6450
commit 358f8cc392
2 changed files with 2 additions and 0 deletions

View File

@@ -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'

View File

@@ -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