Open danarbello opened 4 weeks ago
From this Slack message from @agarzola:
Immediate solution — The issue is that line ~41~ 37 of web/sites/default/settings.local.php
loads web/sites/fe.development.services.yml
(I can’t link to either file in GitHub because they are both ignored in Git). Remove ~that line~ the fe.
prefix from the file, and you should be good to go.
Open a ticket for this — This has a bit of a long tail: web/sites/imprivata/settings.php
requires web/sites/default/settings.php
, which in turn requires web/sites/default/settings.local.php
if it exists. We probably don’t need default/settings.php
to load default/settings.local.php
and we definitely don’t need default/settings.local.php
to load web/sites/fe.development.services.yml
because the web/sites/imprivata/settings.local.php
file created by the frontend:dev-enable
command already loads that services file. What’s puzzling to me is why default/settings.local.php
(a file that is not tracked in Git) is updated to load fe.development.services.yml
(a file that we create with Usher and Drupal should know nothing about). It’s as if there were a custom process somewhere that updates web/sites/default/settings.local.php
to point to the fe.development.services.yml
file we invented, instead of the default, which is just development.services.yml
(i.e. no fe.
prefix).
To clarify: the real mystery here is how a reference to fe.development.services.yml
made its way to web/sites/default/settings.local.php
. I remember that when the frontend:dev-enable
/frontend:dev-disable
commands were created, there was a bit of back-and-forth. It’s possible that originally frontend:dev-enable
only created fe.development.services.yml
and then developers were required to update settings.local.php
on their own, which would explain why Dan’s settings.local.php
—and mine!— were pointing to fe.development.services.yml
in the first place.
Description
As a developer, I would like to disable front-end development tooling like Twig Debugging. To do this, Usher provides a Robo command to do this via
composer robo frontend:dev-disable
. However, when I run this on Imprivata (composer robo frontend:dev-disable imprivata
) although the command completes successfully and without error any successive Drush commands result in the following error:Ultimately, this results in a WSOD for the rendered site with the following error:
Issue Owner
@danarbello
To Reproduce
Steps
imprivata-drupal-8
repocomposer robo frontend:dev-disable imprivata
ddev drush @imprivata.ddev cr
Environment
Expected Behavior
This should function as described by Usher's documentation: disables front-end tooling, especially Twig Debugging.