Closed brushbox closed 9 years ago
I've made a PR for this change: https://github.com/i-ekho/capistrano-git-submodule-strategy/pull/4
I don't know why the cap tasks run twice, do you?
it's because operation executes on all servers. Records
role :app, example.com
role :web, example.com
defines two servers
If I understand what you are trying to do you only want to do the
git clone
if:
- the directory exists AND
- the directory is empty
In my environment release_path
may no exist prior to run task.
I think condition should check what release_path
does not exists OR it's empty
I don't know why the cap tasks run twice, do you?
it's because operation executes on all servers. Records
role :app, example.com role :web, example.com
defines two servers
That was my guess...until I removed all roles except for :app
and I still had cap tasks executing twice.
In my environment release_path may no exist prior to run task.
I think condition should check what release_path does not exists OR it's empty
That makes sense. I'll check that change in my env and update on the outcome.
I don't know why the cap tasks run twice, do you?
Anyway, I hit that issue and I found that your fix wasn't working for me.
If I understand what you are trying to do you only want to do the
git clone
if:I made a quick hack in the gem and found that the following change worked: