GlotPress - Local development environment
Prerequisites
- Git
- Docker
- Node/NPM
Setup
git clone https://github.com/amieiro/glotpress-env
cd glotpress-env
npm install
npm run start
(This will provision some git checkouts as needed).- Visit site at http://localhost:8888 .
- To access to GlotPress, please, click here.
Import data
Execute:
npm run wp-env run cli wp glotpress import-originals core wp-content/uploads/wordpress.po &&
npm run wp-env run cli wp glotpress import-originals themes/twenty-twenty wp-content/uploads/twenty-twenty.po &&
npm run wp-env run cli wp glotpress import-originals themes/twenty-twenty-one wp-content/uploads/twenty-twenty-one.po &&
npm run wp-env run cli wp glotpress import-originals plugins/akismet wp-content/uploads/akismet.po &&
npm run wp-env run cli wp glotpress import-originals plugins/woocommerce wp-content/uploads/woocommerce.po &&
npm run wp-env run cli wp glotpress import-originals plugins/jetpack wp-content/uploads/jetpack.po
Useful commands
- Start and provision the environment:
npm run start
- Stop the environment:
npm run stop
- Destroy the environment:
npm run destroy
- Destroy and reprovision the environment:
npm run destroy-and-provision
More info
This tool is based on WordPress Theme Directory - Local development environment.
This tool uses the @wordpress/env Docker environment.