-
Notifications
You must be signed in to change notification settings - Fork 376
Description
@swissspidy reported an issue with applying multiple Blueprints using Playground CLI:
OK so I've tried this now at swissspidy/wp-performance-action#173 and it doesn't seem to work.
The second blueprint completely overrides everything from the first one.
Context: I am running this in that PR's branch, within the env folder.
My local blueprint (setup.json): https://github.com/swissspidy/wp-performance-action/blob/e49c63d3885ff264a0d23611fe3d3cedf3022192/env/blueprints/setup.json
The remote blueprint (blueprint-complex.json): https://github.com/swissspidy/wp-performance-action/blob/e49c63d3885ff264a0d23611fe3d3cedf3022192/tests/blueprint-complex.json
Plugin I need to mount: https://github.com/swissspidy/wp-performance-action/tree/e49c63d3885ff264a0d23611fe3d3cedf3022192/tests/dummy-plugin
# Seems to work fine, it says demo content was imported and twentytwentyone theme activate
./node_modules/@wp-playground/cli/wp-playground.js run-blueprint --blueprint=./blueprints/setup.json --mount-before-install="./wp:/wordpress"
# Seems to work fine as well, the plugin is mounted to `wp-content/plugins`, and all the plugins are activated
./node_modules/@wp-playground/cli/wp-playground.js run-blueprint --blueprint=../tests/blueprint-complex.json --mount-before-install="./wp:/wordpress" --mount=../tests/dummy-plugin:/wordpress/wp-content/plugins/dummy-plugin
# None of the plugins are activated, there is no demo content, twentytwentyfour is active
./node_modules/@wp-playground/cli/wp-playground.js server --mount-before-install="./wp:/wordpress" --mount=../tests/dummy-plugin:/wordpress/wp-content/plugins/dummy-pluginThen I try this, as server is just like run-blueprint without exiting:
# Seems to work fine, it says demo content was imported and twentytwentyone theme activate
./node_modules/@wp-playground/cli/wp-playground.js run-blueprint --blueprint=./blueprints/setup.json --mount-before-install="./wp:/wordpress"
# The plugin is mounted to `wp-content/plugins` and all the plugins are activated, but there is no demo content, twentytwentyfour is active
./node_modules/@wp-playground/cli/wp-playground.js server --blueprint=../tests/blueprint-complex.json --mount-before-install="./wp:/wordpress" --mount=../tests/dummy-plugin:/wordpress/wp-content/plugins/dummy-plugin