file-permissions icon indicating copy to clipboard operation
file-permissions copied to clipboard

when to run?

Open ivomarino opened this issue 7 years ago • 1 comments

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 avatar May 03 '17 09:05 ivomarino

@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!

hisem avatar Aug 07 '17 08:08 hisem