-
Notifications
You must be signed in to change notification settings - Fork 14
Plugin relies on database connection when running theme:compile #31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
…void needing database in theme:compile See FriendsOfShopware#31
I understand the problem regarding the message, but I can't reproduce this on the mentioned way.
Any idea? Could you please try this: 076ac22 |
@tinect huh weird. That is indeed the error that you should be getting (because you don't have https://developer.shopware.com/docs/guides/hosting/installation-updates/deployments/build-w-o-db#compiling-the-storefront-without-database configured). |
@tinect that commit works as a charm! :) |
I'm afraid I cannot reproduce the error :-( But, good it works for you. |
Uh oh!
There was an error while loading. Please reload this page.
PHP Version
8
Shopware Version
6.4.6.1
Actual behaviour
When running
./bin/ci theme:compile --keep-assets -vvv
in CI (so when there is no database present), the compiling breaks because of this plugin;Expected behaviour
This is what happens when this plugin is deactivated (
bin/console plugin:deactivate FroshPlatformThumbnailProcessor
);Steps to Reproduce?
CI=1 ./bin/ci theme:compile --keep-assets -vvv
without a database (for local testing, comment theDATABASE_URL
var in.env
out)Suggested fix
Lazy loading the service that is responsible for instantiating the class that requires a database connection, see #32
The text was updated successfully, but these errors were encountered: