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
Uh oh!
There was an error while loading. Please reload this page.
-
My
deploy.phpfile references a custom recipe that I've built taking inspiration from one of the older NPM recipes. It's to run acomposer installmuch like thenpm installbut only if thecomposer.jsonfile 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
diffcommand is causing an exit code 1 which is causing the whole deployment process to exit despite this being the correct error code for thediffcommand, 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