Get a full Planet 4 development environment to your local machine
We are using wp-env
as a base and pulling all necessary themes and plugins so that you can develop for your website more easily.
- docker, docker-compose
- node, npm, nvm
- curl
- wp-env
npm -g i @wordpress/env
- optional: gsutil CLI
- Clone this repo
- Set node version
> nvm use
> npm run env:install
> npm run env:clean
npm run
- env:install Install default Planet 4 theme and database
- env:clean Clean wp-env and delete all Planet 4 files
- env:config Show generated configuration
- env:fix-permissions [all] Fix files permissions to current user as owner
- env:clean-repos Remove main repos if they are not git repositories
- env:update Update installer, base and main repos
- env:status Status of docker containers
- nro:install <?nro> Install NRO theme and database, if declared in .p4-env.json
- nro:enable Enable installed NRO theme and database
- nro:disable Switch back to default theme and database
- nro:theme <?nro> Clone NRO theme in themes dir
- build:assets Build main repos assets
- build:repos Clone and install main repos
- db:import <dump path> <db name> Import database dump (gzip)
- db:use <db name> Switch to database
- Add Redis server to check if instance is faster that way
- check why everything is root (missing user with UID used by wp-env ?)
- execute @site:custom scripts
- figure out replacement of
wp
commands
- figure out replacement of
- reverse proxy
- similar to nginx, but for Apache2
- adapt to Apache2
- String Translation issues writing in languages folder