Skip to content

v0.7

Compare
Choose a tag to compare
@lithrel lithrel released this 05 Sep 07:46
· 61 commits to main since this release

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