From 97e03542fe3e847d322d37a420dcaeb5eb3aa346 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Frankiewicz?= Date: Sun, 29 Oct 2023 20:32:53 +0100 Subject: [PATCH] fixes woo install --- packages/playground/compile-wordpress/Dockerfile | 6 ++---- packages/playground/remote/project.json | 7 +------ 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/packages/playground/compile-wordpress/Dockerfile b/packages/playground/compile-wordpress/Dockerfile index c8e6b20977..79e86201a9 100644 --- a/packages/playground/compile-wordpress/Dockerfile +++ b/packages/playground/compile-wordpress/Dockerfile @@ -139,11 +139,9 @@ RUN cd wordpress/wp-content/mu-plugins && \ echo " $plugin_name.php; \ done; -RUN cd wordpress && (../wp-cli.phar --allow-root plugin is-active woocommerce || \ - (cp -R wp-content/mu-plugins/woocommerce wp-content/plugins/woocommerce && \ +RUN cd wordpress && \ ../wp-cli.phar --allow-root plugin activate woocommerce && \ - ../wp-cli.phar --allow-root import wp-content/mu-plugins/woocommerce/sample-data/sample_products.xml --authors=create && \ - rm -Rf wp-content/plugins/woocommerce)) + ../wp-cli.phar --allow-root import wp-content/mu-plugins/woocommerce/sample-data/sample_products.xml --authors=create # Strip whitespaces from PHP files. # PHP 7.4 is a safe choice here: `php -w` ran on 7.4 diff --git a/packages/playground/remote/project.json b/packages/playground/remote/project.json index 53ad826d12..346b90ea71 100644 --- a/packages/playground/remote/project.json +++ b/packages/playground/remote/project.json @@ -47,12 +47,7 @@ "executor": "nx:run-commands", "options": { "commands": [ - "node packages/playground/compile-wordpress/build.js --wp-version=latest-minus-3 --output-js=packages/playground/remote/src/wordpress --output-assets=packages/playground/remote/public", - "node packages/playground/compile-wordpress/build.js --wp-version=latest-minus-2 --output-js=packages/playground/remote/src/wordpress --output-assets=packages/playground/remote/public", - "node packages/playground/compile-wordpress/build.js --wp-version=latest-minus-1 --output-js=packages/playground/remote/src/wordpress --output-assets=packages/playground/remote/public", - "node packages/playground/compile-wordpress/build.js --wp-version=latest --output-js=packages/playground/remote/src/wordpress --output-assets=packages/playground/remote/public", - "node packages/playground/compile-wordpress/build.js --wp-version=beta --output-js=packages/playground/remote/src/wordpress --output-assets=packages/playground/remote/public", - "node packages/playground/compile-wordpress/build.js --wp-version=nightly --output-js=packages/playground/remote/src/wordpress --output-assets=packages/playground/remote/public" + "node packages/playground/compile-wordpress/build.js --wp-version=latest --output-js=packages/playground/remote/src/wordpress --output-assets=packages/playground/remote/public" ], "parallel": false }