Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make symlink:release an atomic operation #1097

Merged
merged 5 commits into from Nov 17, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -82,8 +82,9 @@ namespace :deploy do
desc 'Symlink release to current'
task :release do
on release_roles :all do
execute :rm, '-rf', current_path
execute :ln, '-s', release_path, current_path
tmp_current_path = release_path.parent.join(current_path.basename)
execute :ln, '-s', release_path, tmp_current_path
execute :mv, tmp_current_path, current_path.parent
end
end