-
Notifications
You must be signed in to change notification settings - Fork 396
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
BLT 12 checks isAcsfInited() instead of isAcsfEnv() in default.local.settings.php #4229
Comments
Come to think of it, both of these methods ( |
I think the problem here is that I think we need to bring back that functionality in some form. Not sure if it can live in the environment detector since it's dependent on BLT config. We'd also need to ensure it's optional, so the db name isn't modified if no site name can be determined. |
From the closed PR:
That is consistent with my suggestion at the end of the issue description here: instead of the minimal fix in #4230, completely remove the I will be happy to submit a PR that checks In the long run, if FWIW, checking public static function getAcsfDbName() {
return isset($GLOBALS['gardens_site_settings']) && self::isAcsfEnv() ? $GLOBALS['gardens_site_settings']['conf']['acsf_db_name'] : NULL;
} |
Thanks. I have not tested yet, but I am pretty sure that #4238 will fix this bug. |
Describe the bug
With Drupal 9 and BLT 12, I have recently run
blt recipes:acsf:init:all
and committed the results. Now, when I runblt setup -n
, I see the following:The database name should be
drupal9
, notdrupal9_
. This leads to errors a few lines later, when BLT tries to invokedrush site:install
.Expected behavior
The
blt setup
command should execute without errors, setting up a local site with the default profle.System information
Additional context
The unwanted
_
character comes from these lines indefault.local.settings.php
, which were added in 5a4aa87 as part of the fix for Issue #3983:After
recipes:acsf:init:all
, the testisAcsfInited()
returns TRUE, and the underscore is added to the database name.A minimal fix is to replace
isAcsfInited()
withisAcsfEnv()
. I will submit a PR that does this.If I understand correctly, the BLT strategy for settings files is that the
local
version should only be used in local environments, not CI and not on Acquia Cloud. If so, then a better fix would be to remove that entireif
clause.The text was updated successfully, but these errors were encountered: