file-permissions
file-permissions copied to clipboard
when to run?
is it possible to run deploy:set_permissions:acl
at the really end of the deployment process? It actually seems that a composer install
process sets some file permissions which I need to override, thanks.
@ivomarino Yes, you can actually have it run whenever you want.
In the docs, it suggests doing:
before "deploy:updated", "deploy:set_permissions:acl”
meaning it will run before the “deploy:updated” hook.
Check out the basic “flow” of capistrano here: http://capistranorb.com/documentation/getting-started/flow/
If you simply want to make sure it runs after composer, you can use after "composer:run", "deploy:set_permissions:acl”
.
Likewise, you can have it run after/before any other process (or hook) that is defined. Check the output of capistrano, you can see which processes run in which order, and use the “before” or “after” to insert your process where it suits your needs!