Skip to content
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

[Playground CLI] Running consecutive commands to apply multiple Blueprings doesn't work #2034

Open
adamziel opened this issue Nov 28, 2024 · 1 comment
Labels
[Package][@wp-playground] CLI [Type] Bug An existing feature does not function as intended

Comments

@adamziel
Copy link
Collaborator

adamziel commented Nov 28, 2024

@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-plugin

Then 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
@adamziel adamziel converted this from a draft issue Nov 28, 2024
@adamziel adamziel added [Type] Bug An existing feature does not function as intended [Package][@wp-playground] CLI labels Nov 28, 2024
@swissspidy
Copy link
Member

Nit: typo in the title :)

Thanks for looking into this!

@adamziel adamziel moved this from Inbox to Bugs Backlog in Playground Board Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package][@wp-playground] CLI [Type] Bug An existing feature does not function as intended
Projects
Status: Backlog
Development

No branches or pull requests

2 participants