I have encountered an issue today where Composer failed part way through retrieving dependencies. However, the partially downloaded dependencies were then copied across to the live site, which resulted in an outage.
Currently, the deploy.cmd file does not check for an error before calling the Kudu sync command:
I have encountered an issue today where Composer failed part way through retrieving dependencies. However, the partially downloaded dependencies were then copied across to the live site, which resulted in an outage.
Currently, the deploy.cmd file does not check for an error before calling the Kudu sync command:
Adding
IF !ERRORLEVEL! NEQ 0 goto error
after thecall composer install %COMPOSER_ARGS%
line will prevent this from happening.