Skip to content

Add try/catch for db connection before db exists#15

Open
hdezela wants to merge 2 commits into
ecommpro:masterfrom
hdezela:master
Open

Add try/catch for db connection before db exists#15
hdezela wants to merge 2 commits into
ecommpro:masterfrom
hdezela:master

Conversation

@hdezela

@hdezela hdezela commented Dec 16, 2022

Copy link
Copy Markdown

The getAllowedCurrencies() function creates a db connection within the initialization process. This causes builds to fail in Adobe Cloud due to the fact that it runs bin/magento module:enable before the database is available. The try/catch allows it to fail gracefully and finish the deploy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant