Skip to content

Releases: greenpeace/planet4-develop

v0.7.2

26 Oct 12:32
43b421e
Compare
Choose a tag to compare

Bug fixes

  • Fix failing e2e test job on hanging html report
  • Fix NPM install command with --legacy-peer-deps

v0.7.1

06 Sep 08:09
Compare
Choose a tag to compare

Bug fixes

v0.7

05 Sep 07:46
Compare
Choose a tag to compare

Changes

  • #24 wp-env is now used as a local package
    • all wp-env commands should now run as npx wp-env
  • #22 Update deprecated gsutil usage to gcloud storage
    • requires an up-to-date gcloud installation
  • #23 PHP shell user in npm run shell:php is now local user by default
    • use npm run shell:php:root to get root

Bug fixes

  • #21 .htaccess should now handle wp-uploads and local bucket urls and display images properly
    • .htaccess was moved outside of wp-content
    • a new command npm run env:htaccess was added for testing purpose, it regenerates the htaccess file
  • #20 Composer process timeout is not added to composer.json files anymore
  • Installation should not crash if gcloud is not authenticated
  • admin user should be created if it does not exist

Install/update guide

Clean install

> git clone [email protected]:greenpeace/planet4-develop.git
> cd planet4-develop
> nvm use
> npm install
> npm run nro:install <your nro name>
# (for p4-team, please use `npm run env:install` instead, or `npm run build:repos` afterward)

Update existing install

  • Stop your local environment
    • npm run env:stop
  • Please update your gcloud tools if necessary !
    Depending on your installation, this might be done automatically by your system (Linux usually);
    but it might also depend on you doing it manually (MacOS).
    This command will either update the tools or tell you if it's not necessary.
    > gcloud components update
  • Update this repository
    • git fetch -v -t
    • git checkout v0.7
  • Remove wp-env global install
    • npm -g remove @wordpress/env
  • Run npm install
  • Almost done :)
    • Run npm run env:start
    • Remove file in ./planet4/.htaccess and run npm run env:htaccess
    • Run npm run env:start again to restart

v0.6

12 Jun 06:10
Compare
Choose a tag to compare
  • Update mysql command to mariadb
  • Fix shell:mysql command
  • Skip dump/zip download if local file exists

v0.5

02 Jun 14:47
Compare
Choose a tag to compare
  • Update to @wordpress/env 8.0.0
    • Fixes file permissions issues
    • Has grouped containers for cli/wp/composer
    • Disallow unknown config keys
  • Change in content mapping and paths
  • Change in functions to run wp, composer, cli commands
  • wp-env version check
    • unexpected version is marked with a red cross
  • change config .p4-env.json to .wp-env.json merge strategy
    • external config keys moved to .p4-env.json, override for both config used
  • composer run-script site:custom works and runs automatically on nro:install
  • fix on CI E2E results export

Update instructions

  • Save your work (the update process will destroy everything)
  • Destroy everything npm run env:destroy
  • Update this repo
  • Update wp-env package npm -g install @wordpress/[email protected]
  • Reinstall 🕺

v0.4

12 Apr 15:04
Compare
Choose a tag to compare
  • Shell commands for easy access to php and mysql containers
    • shell:php
    • shell:mysql
  • Elastic search container and commands
    • elastic:activate
    • elastic:deactivate
  • Reverse proxy for NRO assets to gcloud bucket
  • Default URL set to http://www.planet4.test
  • Prod URL detection from CI config, URL replacement with local URL on install
  • Requirements debug

v0.3

31 Mar 13:42
Compare
Choose a tag to compare
version 0.3

v0.2

31 Mar 12:59
Compare
Choose a tag to compare
version 0.2