Closed AndreasA closed 1 year ago
The user has to run them manually with the new template. https://github.com/shopware/docs/pull/760/files#diff-2525a2629f134228fc7d55615d5fbb517990de2c6ff9de903d5522d9fd25acf7R150
@shyim OK but:
$context
variable? if I understand it correctly, this is basically $_SERVER
(more or less) by default which means that resolving DATABASE_URL
and other variables in those files, currently bypasses the EnvironmentHelper which bypasses the transformers?
@shyim Can the new recipes already be used as they are? if so, ref ref=flex/main
should always be used, independent of Shopware version as the version is determined differently, isn't it?
You need atleast Shopware 6.4.15.0. Yes flex/main is for all versions
@shyim I guess this https://github.com/shopware/production/issues/158#issuecomment-1290165299 does not matter as you only check db url variable existence which should be fine without using the environment helper at all as that one only transforms variables. otherwise the transform would need to be called manually instead of using getVariable
but ok.
PHP Version
8.1
Shopware Version
6.4.14.0
Expected behaviour
Only run system:update:finish after Shopware has been installed, e.g. checking lock file again. Sanest might be to check if a DB can be reached (e.g. ping) and certain tables exist?
Actual behaviour
The script is might be run prior to Shopware installation being finished. This can result in database connection errors etc.
How to reproduce
.env
file with defaults..env.local
withAPP_ENV=test
.env.test
with aDATABASE_URL
for tests.composer install
and do not skip scripts.This is also the case with
.env.dev
etc. that might be in the repository, in case a user/developer has not finished Shopoware setup.