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

Add hardlink support #375

Closed chrisjung-dev closed 3 years ago

chrisjung-dev commented 3 years ago

Im new to this. I changed the symlink roles and added a new var, also added this to the docs.

Please be kind and help me with the test scenario and how to add this.

ricardclau commented 3 years ago

Can you please provide a use case where this can be useful? The links feature is precisely to have files / folders available between releases so they need to be symlinks and not hardlinks

ricardclau commented 3 years ago

Closing this as it will not work with folders and if you need it for a particular file it can easily be done via hooks, not sure if it's worth adding this property on every single shared resource

chrisjung-dev commented 3 years ago

Hi! Sorry for the delay.

The use case is deploying this on a machine where you can not reload the server (managed hosting/shared hosting), but PHP may be evaluating changed symlinks with delays.

ricardclau commented 3 years ago

If there is a lot of support for this feature we may consider adding it, but as this only works with files and not folders and it would require breaking compatibility, please do this in a hook.