diff command in custom recipe causes deployment process to exit #2904
Unanswered
stsonline
asked this question in
Help needed
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My
deploy.php
file references a custom recipe that I've built taking inspiration from one of the older NPM recipes. It's to run acomposer install
much like thenpm install
but only if thecomposer.json
file is different from the previous release to prevent having to always run it, resulting in faster deployments.My custom recipe is running the task, but the
diff
command is causing an exit code 1 which is causing the whole deployment process to exit despite this being the correct error code for thediff
command, the exit code 1 implies that the files are different, which they are, so why is Deployer failing on this instead of running my install?My [my_project]/deploy/recipe/sts-composer.php
This is then loaded into my [my_project]/deploy.php file
Thoughts on how to resolve as a workaround for Deployer 6.8 please.
Beta Was this translation helpful? Give feedback.
All reactions