I've got a task that creates a directory in :after_symlink. when I
cap deploy, this mkdir works fine. But when I cap deploy:migrations,
the mkdir fails saying that the file already exists. I added an
unless File.exists on the run command for the directory I'm creating,
but it continues to try to run the mkdir.
Can anyone explain what's going on?
Try running that task after update_code, instead of after symlink.
That way it will get called at the right time for your migration to
see it.
- Jamis
Sean
On Aug 16, 2:41 pm, "Jamis Buck" <ja...@37signals.com> wrote:
> Because File.exists?() tests on the local machine, and current_path
> exists on the remote machine.
>
> Try running that task after update_code, instead of after symlink.
> That way it will get called at the right time for your migration to
> see it.
>
> - Jamis
>