Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fixed shared children not linking #11

Merged
merged 2 commits into from

3 participants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 19, 2012
  1. @mneumegen

    Shared children fix

    mneumegen authored
  2. @mneumegen
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 0 deletions.
  1. +7 −0 lib/railsless-deploy.rb
View
7 lib/railsless-deploy.rb
@@ -222,6 +222,13 @@ def try_runner(*args)
DESC
task :finalize_update, :except => { :no_release => true } do
run "chmod -R g+w #{latest_release}" if fetch(:group_writable, true)
+
+ shared_children.map do |d|
+ run <<-CMD
+ rm -rf #{latest_release}/#{d} &&
+ ln -s #{shared_path}/#{d.split('/').last} #{latest_release}/#{d}
+ CMD
+ end
end
desc <<-DESC
Something went wrong with that request. Please try again.