ansistrano / deploy

Ansible role to deploy scripting applications like PHP, Python, Ruby, etc. in a capistrano style
https://ansistrano.com
MIT License
2.37k stars 343 forks source link

Help needed: Shared folder as symlink on NFS #254

Closed zneel closed 6 years ago

zneel commented 7 years ago

Hello guys I'm deploying a Symfony App on a cluster setup and I need to set the shared folder on a NFS via a symlink like so: deploy_path/shared -> /shared/prod/<appname> So I can share uploads/config files between apps. I've been trying with the hooks but no luck so far, any idea how to do it ?

Thanks in advance

ricardclau commented 6 years ago

Right now, Ansistrano only supports out-of-the-box shared folders / files relative to the deploy_to path as you can see in https://github.com/ansistrano/deploy/blob/master/tasks/symlink-shared.yml

Provided the NFS is already mounted, it is trivial to do a ansistrano_before_symlink_shared_tasks_file or ansistrano_after_symlink_shared_tasks_file hook with similar instructions pointing to your desired src