You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I have a multisite codebase setup. When I run blt sync --site=foo the sync command is running on the default site. However, when I run blt sync:db --site=foo then my db sync appropriately runs on the foo site.
It would appear to me in a bit of debugging that the site context is getting cleared (somehow) in the command stack. I see it with some debugging initially, but by the time we get to the sync:db command it's gone.
To Reproduce
Steps to reproduce the behavior, ideally starting from a fresh install of BLT:
Note that in the sql-sync command the site that is being synced is the default and not the first.
Run it again with: lando blt sync:db --site=first and note that the sql-sync is now the correct site.
Expected behavior
I would expect the full blt sync command to respect a multisite context and not just the sync:db portion.
Detailed error output
lando blt sync --site=fist
We strive to give you the best tools for development.
You can really help us improve by sharing anonymous performance and usage data.
Do you want to help us make this tool even better? (y/n) n
Ok, no data will be tracked and reported.
We take privacy seriously.
> source:build:composer
Gathering patches for root package.
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Nothing to install, update or remove
Package doctrine/reflection is abandoned, you should avoid using it. Use roave/better-reflection instead.
Package webmozart/path-util is abandoned, you should avoid using it. Use symfony/filesystem instead.
Generating autoload files
89 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Scaffolding files for acquia/drupal-recommended-project:
- Skip [web-root]/sites/default/default.services.yml because it already exists and overwrite is false.
- Skip [web-root]/sites/default/default.settings.php because it already exists and overwrite is false.
> blt:init:settings
Hash salt already exists.
> drupal:sync:db
[Acquia\Blt\Robo\Tasks\DrushTask] Running /app/vendor/bin/drush cache-clear drush --no-interaction --ansi &&
/app/vendor/bin/drush sql-sync @default.dev @self --target-dump=/tmp/tmp.target.sql.gz --structure-tables-key=lightweight --create-db --no-interaction --ansi &&
/app/vendor/bin/drush cr --no-interaction --ansi &&
/app/vendor/bin/drush sql-sanitize --no-interaction --ansi in /app/docroot
After discussion with @danepowell this appears to be related to #4324. My local testing is that by adding a similar context for --site into BLT Task it begins working again. I'm going to open a PR.
Describe the bug
I have a multisite codebase setup. When I run
blt sync --site=foo
the sync command is running on the default site. However, when I runblt sync:db --site=foo
then my db sync appropriately runs on the foo site.It would appear to me in a bit of debugging that the site context is getting cleared (somehow) in the command stack. I see it with some debugging initially, but by the time we get to the sync:db command it's gone.
To Reproduce
Steps to reproduce the behavior, ideally starting from a fresh install of BLT:
composer install
lando start
lando blt sync --site=first
Note that in the sql-sync command the site that is being synced is the default and not the first.
Run it again with:
lando blt sync:db --site=first
and note that the sql-sync is now the correct site.Expected behavior
I would expect the full
blt sync
command to respect a multisite context and not just the sync:db portion.Detailed error output
vs. the blt sync:db output
BLT Doctor:
The text was updated successfully, but these errors were encountered: