symlink beta-testers file after a deploy
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user