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 file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

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

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.