Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixed shared children not linking #11

Merged
merged 2 commits into from

3 participants

Mike Neumegen Chris Kempson Lee Hambley
Mike Neumegen

Shared children wouldn't link for me. This seems to fix it.

Lee Hambley leehambley merged commit 414334e into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 19, 2012
  1. Mike Neumegen

    Shared children fix

    mneumegen authored
  2. Mike Neumegen
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
7 lib/railsless-deploy.rb
View
@@ -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.