Skip to content

Commit

Permalink
fixes woo install
Browse files Browse the repository at this point in the history
  • Loading branch information
mfrankiewicz committed Oct 29, 2023
1 parent d0e157d commit 97e0354
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
6 changes: 2 additions & 4 deletions packages/playground/compile-wordpress/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,9 @@ RUN cd wordpress/wp-content/mu-plugins && \
echo "<?php require_once __DIR__.'/$plugin_name/$plugin_name.php';" > $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
Expand Down
7 changes: 1 addition & 6 deletions packages/playground/remote/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 97e0354

Please sign in to comment.