Skip to content

Instantly share code, notes, and snippets.

@shawninder
Created February 24, 2021 16:01
Show Gist options
  • Save shawninder/69fe5dca66e1fd8876edfdd5a52016d8 to your computer and use it in GitHub Desktop.
Save shawninder/69fe5dca66e1fd8876edfdd5a52016d8 to your computer and use it in GitHub Desktop.
In planet4-docker-compose, having removed `repos` from the `dev` target: `make dev`
Hosts file already configured
.env file already exists
ERROR: build path /Users/shawn/git/shawninder/planet4-docker-compose/defaultcontent either does not exist, is not accessible, or is not a valid URL.
make[1]: *** [start] Error 1
/Applications/Xcode.app/Contents/Developer/usr/bin/make -j init getdefaultcontent db/Dockerfile
make[2]: Nothing to be done for `init'.
mkdir -p defaultcontent
envsubst < db/Dockerfile.in > db/Dockerfile
curl --fail https://storage.googleapis.com/planet4-default-content/planet4-defaultcontent_wordpress-v0.0.39.sql.gz > defaultcontent/planet4-defaultcontent_wordpress-v0.0.39.sql.gz
echo "Getting default content images..."
Getting default content images...
curl --fail https://storage.googleapis.com/planet4-default-content/planet4-default-content-1-25-images.zip > defaultcontent/planet4-default-content-1-25-images.zip
% Total % Received % Xferd A v e%r aTgoet aSlp e e d% Received % XTfiemred Av era gTei mSep e e d T iTmiem e C u r rTeinmte
T i m e C u r r e n t
D load Up l o a d T o t a l Spent Dload Upload TLoetfatl S pSepeedn
L e f0t S p e0e d
100 1411k 100 1411k 0 0 71192 0 0:00:20 0:00:20 --:--:-- 71031--:--:--:--:-- -- --:--:--:--:-- -- --:--:--:--:-- - 0 0
100 116M 100 116M 0 0 188k 0 0:10:32 0:10:32 --:--:-- 526k
cp ci/scripts/duplicate-db.sh defaultcontent/duplicate-db.sh
./go.sh
Building services ...
traefik uses an image, skipping
redis uses an image, skipping
php-fpm uses an image, skipping
openresty uses an image, skipping
node uses an image, skipping
Building db
Step 1/3 : FROM mysql:5.7
---> cc8775c0fe94
Step 2/3 : ADD planet4-defaultcontent_wordpress-v0.0.39.sql.gz /docker-entrypoint-initdb.d/
---> 238bd0ff364c
Step 3/3 : COPY duplicate-db.sh /docker-entrypoint-initdb.d/
---> 6ba24eac442a
Successfully built 6ba24eac442a
Successfully tagged planet4dockercompose_db:latest
Starting services ...
WARNING: The Docker Engine you're using is running in swarm mode.
Compose does not use swarm mode to deploy services to multiple nodes in a swarm. All containers will be scheduled on the current node.
To deploy your application across the swarm, use `docker stack deploy`.
Creating network "planet4dockercompose_proxy" with driver "bridge"
Creating network "planet4dockercompose_local" with the default driver
Creating network "planet4dockercompose_db" with the default driver
Creating volume "planet4dockercompose_db" with default driver
Creating volume "planet4dockercompose_excluded" with default driver
Creating volume "planet4dockercompose_excluded-theme" with default driver
Creating volume "planet4dockercompose_excluded-plugin" with default driver
Creating planet4dockercompose_traefik_1 ... done
Creating planet4dockercompose_db_1 ... done
Creating planet4dockercompose_redis_1 ... done
Creating planet4dockercompose_node_1 ... done
Creating planet4dockercompose_php-fpm_1 ... done
Creating planet4dockercompose_openresty_1 ... done
Starting P4 Wordpress docker-compose stack.
Note, this may take up to 10 minutes on the first run!
Waiting for services to start ................................................✔✔✔
Services started successfully
docker-compose exec -T php-fpm wp option set rt_wp_nginx_helper_options '{ "enable_purge": 1, "cache_method": "enable_redis", "enable_map": 0, "enable_log": 0, "enable_stamp": 1, "purge_homepage_on_edit": 1, "purge_homepage_on_del": 1, "purge_archive_on_edit": 1, "purge_archive_on_del": 1, "purge_archive_on_new_comment": 1, "purge_archive_on_deleted_comment": 1, "purge_page_on_mod": 1, "purge_page_on_new_comment": 1, "purge_page_on_deleted_comment": 1, "purge_method": "get_request", "purge_url": "", "redis_hostname": "redis", "redis_port": "6379", "redis_prefix": "nginx-cache:" }' --format=json
Warning: Redis::connect(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /app/source/public/wp-content/plugins/planet4-nginx-helper/admin/class-phpredis-purger.php on line 45
Success: Updated 'rt_wp_nginx_helper_options' option.
docker-compose exec -T php-fpm wp rewrite structure /%category%/%post_id%/%postname%/
Success: Rewrite structure set.
Success: Rewrite rules flushed.
docker-compose exec php-fpm wp option patch insert planet4_options cookies_field "Planet4 Cookie Text"
Success: Updated 'planet4_options' option.
docker-compose exec php-fpm wp user update admin --user_pass=admin --role=administrator
Notice: Undefined index: SERVER_NAME in /app/source/public/wp-includes/pluggable.php on line 331
sendmail: Cannot open smtp:25
Success: Updated user 1.
docker-compose exec php-fpm wp plugin deactivate wp-stateless
Plugin 'wp-stateless' deactivated.
Success: Deactivated 1 of 1 plugins.
docker-compose exec php-fpm wp option update ep_host http://elasticsearch:9200/
Success: Updated 'ep_host' option.
/Applications/Xcode.app/Contents/Developer/usr/bin/make flush
docker-compose exec redis redis-cli flushdb
OK
./scripts/install-deps.sh
+ APP_USER=app
+ NODE_USER=node
+ docker-compose exec -u app php-fpm bash -c 'cd /app/source/public/wp-content/themes/planet4-master-theme && composer install --prefer-dist'
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
1/36: https://codeload.github.com/phar-io/version/legacy.zip/a70c0ced4be299a63d32fa96d9281d03e94041df
2/36: https://codeload.github.com/myclabs/DeepCopy/legacy.zip/776f831124e9c62e1a2c601ecc52e776d8bb7220
3/36: https://codeload.github.com/stevegrunwell/phpunit-markup-assertions/legacy.zip/2f8890bc6ca5e2f7829418b85eb849341b0b8b02
4/36: https://codeload.github.com/sebastianbergmann/code-unit-reverse-lookup/legacy.zip/1de8cd5c010cb153fcd68b8d0f64606f523f7619
5/36: https://codeload.github.com/phar-io/manifest/legacy.zip/2df402786ab5368a0169091f61a7c1e0eb6852d0
6/36: https://codeload.github.com/theseer/tokenizer/legacy.zip/75a63c33a8577608444246075ea0af0d052e452a
7/36: https://codeload.github.com/sebastianbergmann/php-file-iterator/legacy.zip/730b01bc3e867237eaac355e06a36b85dd93a8b4
8/36: https://codeload.github.com/composer/installers/legacy.zip/b93bcf0fa1fccb0b7d176b0967d969691cd74cca
9/36: https://codeload.github.com/sebastianbergmann/php-text-template/legacy.zip/31f8b717e51d9a2afca6c9f046f5d69fc27c8686
10/36: https://codeload.github.com/phpspec/prophecy/legacy.zip/451c3cd1418cf640de218914901e51b064abb093
11/36: https://codeload.github.com/sebastianbergmann/comparator/legacy.zip/34369daee48eafb2651bea869b4b15d75ccc35f9
12/36: https://codeload.github.com/sebastianbergmann/environment/legacy.zip/cd0871b3975fb7fc44d11314fd1ee20925fce4f5
13/36: https://codeload.github.com/sebastianbergmann/diff/legacy.zip/347c1d8b49c5c3ee30c7040ea6fc446790e6bddd
14/36: https://codeload.github.com/sebastianbergmann/object-enumerator/legacy.zip/e67f6d32ebd0c749cf9d1dbd9f226c727043cdf2
15/36: https://codeload.github.com/sebastianbergmann/phpunit-mock-objects/legacy.zip/cd1cf05c553ecfec36b170070573e540b67d3f1f
16/36: https://codeload.github.com/sebastianbergmann/object-reflector/legacy.zip/9b8772b9cbd456ab45d4a598d2dd1a1bced6363d
17/36: https://codeload.github.com/sebastianbergmann/global-state/legacy.zip/e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4
18/36: https://codeload.github.com/sebastianbergmann/resource-operations/legacy.zip/ce990bb21759f94aeafd30209e8cfcdfa8bc3f52
19/36: https://codeload.github.com/sebastianbergmann/version/legacy.zip/99732be0ddb3361e16ad77b68ba41efc8e979019
20/36: https://codeload.github.com/laminas/laminas-dom/legacy.zip/7e85e8d7d2980c716944b8bb8e4a83c0a0dbe91b
21/36: https://codeload.github.com/sebastianbergmann/php-token-stream/legacy.zip/791198a2c6254db10131eecfe8c06670700904db
22/36: https://codeload.github.com/sebastianbergmann/php-timer/legacy.zip/3dcf38ca72b158baf0bc245e9184d3fdffa9c46f
23/36: https://codeload.github.com/sebastianbergmann/recursion-context/legacy.zip/367dcba38d6e1977be014dc4b22f47a484dac7fb
24/36: https://codeload.github.com/phpDocumentor/ReflectionDocBlock/legacy.zip/069a785b2141f5bcf49f3e353548dc1cce6df556
25/36: https://codeload.github.com/phpDocumentor/ReflectionCommon/legacy.zip/1d01c49d4ed62f25aa84a747ad35d5a16924662b
26/36: https://codeload.github.com/webmozart/assert/legacy.zip/bafc69caeb4d49c39fd0779086c03a3738cbb389
27/36: https://codeload.github.com/symfony/polyfill-ctype/legacy.zip/c6c942b1ac76c82448322025e084cadc56048b4e
28/36: https://codeload.github.com/laminas/laminas-zendframework-bridge/legacy.zip/6ede70583e101030bcace4dcddd648f760ddf642
29/36: https://codeload.github.com/sebastianbergmann/exporter/legacy.zip/6b853149eab67d4da22291d36f5b0631c0fd856e
30/36: https://codeload.github.com/doctrine/instantiator/legacy.zip/d56bf6102915de5702778fe20f2de3b2fe570b5b
31/36: https://codeload.github.com/sebastianbergmann/phpunit/legacy.zip/bac23fe7ff13dbdb461481f706f0e9fe746334b7
32/36: https://codeload.github.com/Dealerdirect/phpcodesniffer-composer-installer/legacy.zip/fe390591e0241955f22eb9ba327d137e501c771c
33/36: https://codeload.github.com/squizlabs/PHP_CodeSniffer/legacy.zip/9d583721a7157ee997f235f327de038e7ea6dac4
34/36: https://codeload.github.com/phpDocumentor/TypeResolver/legacy.zip/6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0
35/36: https://codeload.github.com/sebastianbergmann/php-code-coverage/legacy.zip/c89677919c5dd6d3b3852f230a663118762218ac
36/36: https://codeload.github.com/WordPress/WordPress-Coding-Standards/legacy.zip/7da1894633f168fe244afc6de00d141f27517b62
Finished: success: 36, skipped: 0, failure: 0, total: 36
Package operations: 38 installs, 0 updates, 0 removals
- Installing greenpeace/github-archive-installer (1.2): Loading from cache
- Installing composer/installers (v1.9.0): Loading from cache
- Installing squizlabs/php_codesniffer (3.5.8): Loading from cache
- Installing dealerdirect/phpcodesniffer-composer-installer (v0.7.1): Loading from cache
- Installing laminas/laminas-zendframework-bridge (1.1.1): Loading from cache
- Installing symfony/polyfill-ctype (v1.22.0): Loading from cache
- Installing webmozart/assert (1.9.1): Loading from cache
- Installing phpdocumentor/reflection-common (2.2.0): Loading from cache
- Installing phpdocumentor/type-resolver (1.4.0): Loading from cache
- Installing phpdocumentor/reflection-docblock (5.2.2): Loading from cache
- Installing phpunit/php-token-stream (2.0.2): Loading from cache
- Installing sebastian/version (2.0.1): Loading from cache
- Installing sebastian/resource-operations (1.0.0): Loading from cache
- Installing sebastian/recursion-context (3.0.1): Loading from cache
- Installing sebastian/object-reflector (1.1.2): Loading from cache
- Installing sebastian/object-enumerator (3.0.4): Loading from cache
- Installing sebastian/global-state (2.0.0): Loading from cache
- Installing sebastian/exporter (3.1.3): Loading from cache
- Installing sebastian/environment (3.1.0): Loading from cache
- Installing sebastian/diff (2.0.1): Loading from cache
- Installing sebastian/comparator (2.1.3): Loading from cache
- Installing phpunit/php-text-template (1.2.1): Loading from cache
- Installing doctrine/instantiator (1.4.0): Loading from cache
- Installing phpunit/phpunit-mock-objects (5.0.10): Loading from cache
- Installing phpunit/php-timer (1.0.9): Loading from cache
- Installing phpunit/php-file-iterator (1.4.5): Loading from cache
- Installing theseer/tokenizer (1.2.0): Loading from cache
- Installing sebastian/code-unit-reverse-lookup (1.0.2): Loading from cache
- Installing phpunit/php-code-coverage (5.3.2): Loading from cache
- Installing phpspec/prophecy (v1.10.3): Loading from cache
- Installing phar-io/version (1.0.1): Loading from cache
- Installing phar-io/manifest (1.0.1): Loading from cache
- Installing myclabs/deep-copy (1.10.2): Loading from cache
- Installing phpunit/phpunit (6.5.14): Loading from cache
- Installing laminas/laminas-dom (2.8.0): Loading from cache
- Installing stevegrunwell/phpunit-markup-assertions (v1.3.0): Loading from cache
- Installing wp-coding-standards/wpcs (2.3.0): Loading from cache
- Installing wpackagist-plugin/timber-library (1.16.0): Loading from cache
sebastian/global-state suggests installing ext-uopz (*)
phpunit/phpunit-mock-objects suggests installing ext-soap (*)
phpunit/php-code-coverage suggests installing ext-xdebug (^2.5.5)
phpunit/phpunit suggests installing ext-xdebug (*)
phpunit/phpunit suggests installing phpunit/php-invoker (^1.1)
Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
Package phpunit/phpunit-mock-objects is abandoned, you should avoid using it. No replacement was suggested.
Generating autoload files
PHP CodeSniffer Config installed_paths set to ../../wp-coding-standards/wpcs
+ docker-compose exec -u app php-fpm bash -c 'cd /app/source/public/wp-content/plugins/planet4-plugin-gutenberg-blocks && composer install --prefer-dist'
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 36 installs, 0 updates, 0 removals
- Installing greenpeace/github-archive-installer (1.2): Loading from cache
- Installing squizlabs/php_codesniffer (3.5.8): Loading from cache
- Installing dealerdirect/phpcodesniffer-composer-installer (v0.7.1): Loading from cache
- Installing laminas/laminas-zendframework-bridge (1.1.1): Loading from cache
- Installing symfony/polyfill-ctype (v1.22.0): Loading from cache
- Installing webmozart/assert (1.9.1): Loading from cache
- Installing phpdocumentor/reflection-common (2.2.0): Loading from cache
- Installing phpdocumentor/type-resolver (1.4.0): Loading from cache
- Installing phpdocumentor/reflection-docblock (5.2.2): Loading from cache
- Installing phpunit/php-token-stream (2.0.2): Loading from cache
- Installing sebastian/version (2.0.1): Loading from cache
- Installing sebastian/resource-operations (1.0.0): Loading from cache
- Installing sebastian/recursion-context (3.0.1): Loading from cache
- Installing sebastian/object-reflector (1.1.2): Loading from cache
- Installing sebastian/object-enumerator (3.0.4): Loading from cache
- Installing sebastian/global-state (2.0.0): Loading from cache
- Installing sebastian/exporter (3.1.3): Loading from cache
- Installing sebastian/environment (3.1.0): Loading from cache
- Installing sebastian/diff (2.0.1): Loading from cache
- Installing sebastian/comparator (2.1.3): Loading from cache
- Installing phpunit/php-text-template (1.2.1): Loading from cache
- Installing doctrine/instantiator (1.4.0): Loading from cache
- Installing phpunit/phpunit-mock-objects (5.0.10): Loading from cache
- Installing phpunit/php-timer (1.0.9): Loading from cache
- Installing phpunit/php-file-iterator (1.4.5): Loading from cache
- Installing theseer/tokenizer (1.2.0): Loading from cache
- Installing sebastian/code-unit-reverse-lookup (1.0.2): Loading from cache
- Installing phpunit/php-code-coverage (5.3.2): Loading from cache
- Installing phpspec/prophecy (v1.10.3): Loading from cache
- Installing phar-io/version (1.0.1): Loading from cache
- Installing phar-io/manifest (1.0.1): Loading from cache
- Installing myclabs/deep-copy (1.10.2): Loading from cache
- Installing phpunit/phpunit (6.5.14): Loading from cache
- Installing laminas/laminas-dom (2.8.0): Loading from cache
- Installing stevegrunwell/phpunit-markup-assertions (v1.3.0): Loading from cache
- Installing wp-coding-standards/wpcs (2.3.0): Loading from cache
sebastian/global-state suggests installing ext-uopz (*)
phpunit/phpunit-mock-objects suggests installing ext-soap (*)
phpunit/php-code-coverage suggests installing ext-xdebug (^2.5.5)
phpunit/phpunit suggests installing ext-xdebug (*)
phpunit/phpunit suggests installing phpunit/php-invoker (^1.1)
Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
Package phpunit/phpunit-mock-objects is abandoned, you should avoid using it. No replacement was suggested.
Generating autoload files
PHP CodeSniffer Config installed_paths set to ../../wp-coding-standards/wpcs
+ docker-compose exec -u node node sh -c 'cd /app/source/public/wp-content/themes/planet4-master-theme && npm install --no-audit --progress=false'
> puppeteer@1.6.1 install /app/source/public/wp-content/themes/planet4-master-theme/node_modules/puppeteer
> node install.js
**INFO** Skipping Chromium download. "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" environment variable was found.
> node-sass@4.14.1 install /app/source/public/wp-content/themes/planet4-master-theme/node_modules/node-sass
> node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.14.1/linux_musl-x64-83_binding.node
Download complete
Binary saved to /app/source/public/wp-content/themes/planet4-master-theme/node_modules/node-sass/vendor/linux_musl-x64-83/binding.node
Caching binary to /home/node/.npm/node-sass/4.14.1/linux_musl-x64-83_binding.node
> core-js@3.6.5 postinstall /app/source/public/wp-content/themes/planet4-master-theme/node_modules/@wordpress/babel-preset-default/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
> core-js-pure@3.6.5 postinstall /app/source/public/wp-content/themes/planet4-master-theme/node_modules/core-js-pure
> node -e "try{require('./postinstall')}catch(e){}"
> ejs@2.7.4 postinstall /app/source/public/wp-content/themes/planet4-master-theme/node_modules/ejs
> node ./postinstall.js
Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/)
> core-js@2.6.11 postinstall /app/source/public/wp-content/themes/planet4-master-theme/node_modules/wait-on/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
> node-sass@4.14.1 postinstall /app/source/public/wp-content/themes/planet4-master-theme/node_modules/node-sass
> node scripts/build.js
Binary found at /app/source/public/wp-content/themes/planet4-master-theme/node_modules/node-sass/vendor/linux_musl-x64-83/binding.node
Testing binary
Binary is fine
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.12 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.12: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
added 2116 packages from 935 contributors in 118.591s
75 packages are looking for funding
run `npm fund` for details
+ docker-compose exec -u node node sh -c 'cd /app/source/public/wp-content/plugins/planet4-plugin-gutenberg-blocks && npm install --no-audit --progress=false'
> puppeteer@1.6.1 install /app/source/public/wp-content/plugins/planet4-plugin-gutenberg-blocks/node_modules/puppeteer
> node install.js
**INFO** Skipping Chromium download. "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" environment variable was found.
> node-sass@4.14.1 install /app/source/public/wp-content/plugins/planet4-plugin-gutenberg-blocks/node_modules/node-sass
> node scripts/install.js
Cached binary found at /home/node/.npm/node-sass/4.14.1/linux_musl-x64-83_binding.node
> core-js-pure@3.1.4 postinstall /app/source/public/wp-content/plugins/planet4-plugin-gutenberg-blocks/node_modules/core-js-pure
> node scripts/postinstall || echo "ignore"
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
> ejs@2.7.4 postinstall /app/source/public/wp-content/plugins/planet4-plugin-gutenberg-blocks/node_modules/ejs
> node ./postinstall.js
Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/)
> core-js@2.6.9 postinstall /app/source/public/wp-content/plugins/planet4-plugin-gutenberg-blocks/node_modules/wait-on/node_modules/core-js
> node scripts/postinstall || echo "ignore"
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
> core-js@3.6.5 postinstall /app/source/public/wp-content/plugins/planet4-plugin-gutenberg-blocks/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
> node-sass@4.14.1 postinstall /app/source/public/wp-content/plugins/planet4-plugin-gutenberg-blocks/node_modules/node-sass
> node scripts/build.js
Binary found at /app/source/public/wp-content/plugins/planet4-plugin-gutenberg-blocks/node_modules/node-sass/vendor/linux_musl-x64-83/binding.node
Testing binary
Binary is fine
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/watchpack/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
added 1930 packages from 867 contributors in 68.183s
40 packages are looking for funding
run `npm fund` for details
./scripts/build-assets.sh
+ NODE_USER=node
+ docker-compose exec -u node node sh -c 'cd /app/source/public/wp-content/themes/planet4-master-theme && npm run build'
> planet4-master-theme@ build /app/source/public/wp-content/themes/planet4-master-theme
> wp-scripts build --config webpack.config.js --mode production
Browserslist: caniuse-lite is outdated. Please run next command `npm update`
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
webpack-fix-style-only-entries: removing js from style only module: bootstrap.js
webpack-fix-style-only-entries: removing js from style only module: style.js
Browserslist: caniuse-lite is outdated. Please run next command `npm update`
Hash: 4d5c6b1ac667d722784b
Version: webpack 4.40.2
Time: 13793ms
Built at: 02/24/2021 3:59:44 PM
6 assets
Entrypoint index = index.js
Entrypoint style =
Entrypoint bootstrap = ./bootstrap.min.css
Entrypoint archive_picker = archive_picker.js
[0] external {"this":["wp","element"]} 42 bytes {0} [built]
[2] external {"this":"regeneratorRuntime"} 42 bytes {0} [built]
[9] external {"this":"jQuery"} 42 bytes {2} [built]
[11] (webpack)/buildin/global.js 472 bytes {2} [built]
[12] ./assets/src/scss/style.scss 1.28 KiB {3} [built] [failed] [1 error]
[13] ./assets/src/scss/bootstrap-build.scss 39 bytes {1} [built]
[20] ./assets/src/js/app.js + 9 modules 19.4 KiB {2} [built]
| ./assets/src/js/app.js 848 bytes [built]
| ./assets/src/js/cookies.js 1.73 KiB [built]
| ./assets/src/js/country_select.js 2.18 KiB [built]
| ./assets/src/js/global.js 216 bytes [built]
| ./assets/src/js/header.js 3.96 KiB [built]
| ./assets/src/js/load_more.js 878 bytes [built]
| ./assets/src/js/pdf_icon.js 308 bytes [built]
| ./assets/src/js/search.js 5.19 KiB [built]
| ./assets/src/js/external_links.js 2.43 KiB [built]
| ./assets/src/js/enhancedDonateButton.js 1.73 KiB [built]
[21] ./assets/src/js/archive_picker.js + 6 modules 15.4 KiB {0} [built]
| ./assets/src/js/archive_picker.js 275 bytes [built]
| ./assets/src/js/Components/ArchivePicker.js 4.49 KiB [built]
| ./assets/src/js/Components/archivePicker/useImages.js 5.07 KiB [built]
| ./assets/src/js/Components/archivePicker/ArchivePickerList.js 1.41 KiB [built]
| ./assets/src/js/Components/archivePicker/SingleSidebar.js 2.92 KiB [built]
| ./assets/src/js/Components/archivePicker/MultiSidebar.js 821 bytes [built]
| ./assets/src/js/Components/archivePicker/sizeFunctions.js 467 bytes [built]
+ 15 hidden modules
ERROR in ./assets/src/scss/style.scss
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: File to import not found or unreadable: styleguide/src/base/variables.
on line 15 of /app/source/public/wp-content/themes/planet4-master-theme/assets/src/scss/style.scss
>> @import "styleguide/src/base/variables";
^
at /app/source/public/wp-content/themes/planet4-master-theme/node_modules/webpack/lib/NormalModule.js:315:20
at /app/source/public/wp-content/themes/planet4-master-theme/node_modules/loader-runner/lib/LoaderRunner.js:367:11
at /app/source/public/wp-content/themes/planet4-master-theme/node_modules/loader-runner/lib/LoaderRunner.js:233:18
at context.callback (/app/source/public/wp-content/themes/planet4-master-theme/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
at Object.callback (/app/source/public/wp-content/themes/planet4-master-theme/node_modules/sass-loader/dist/index.js:73:7)
at Object.done [as callback] (/app/source/public/wp-content/themes/planet4-master-theme/node_modules/neo-async/async.js:8067:18)
at options.error (/app/source/public/wp-content/themes/planet4-master-theme/node_modules/node-sass/lib/index.js:294:32)
ERROR in ./assets/src/js/app.js
Module not found: Error: Can't resolve '../scss/styleguide/src/icons/' in '/app/source/public/wp-content/themes/planet4-master-theme/assets/src/js'
@ ./assets/src/js/app.js 16:11-75
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! planet4-master-theme@ build: `wp-scripts build --config webpack.config.js --mode production`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the planet4-master-theme@ build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/node/.npm/_logs/2021-02-24T15_59_44_881Z-debug.log
make: *** [assets] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment