Closed erikhansen closed 4 years ago
@erikhansen Sounds like you have it solved. Another resolution may be to dump themes, scopes, and i18n to config.php
and then commit them allowing this gem to remove the app/etc/env.php file during the build phase preventing any "cross-talk" and/or attempted connections to db or cache backends.
@davidalger Ah, thanks for the tip. I had the thought in the back of my mind that configuring a "zero side effect deployment" might resolve this issue, and it sounds like I should have given that though credence.
Leaving this here in case it's helpful to anyone else who might run into this.
I'm deploying Magento 2.3.2 to multiple application servers. I was intermittently getting this error during the
magento:setup:di:compile
step:I've not run into this issue in other multi-app setups, so it's likely something specific to this environment (third-party extension, etc).
I added the contents below to a
tools/cap/lib/capistrano/tasks/di_compile_in_sequence.rake
file, and it worked around my issue: