humanmade / local-vip
Local Server module for WordPress VIP projects
Installs: 9 861
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 19
Forks: 4
Open Issues: 5
Type:composer-plugin
Requires
- php: >=7.1
- composer-plugin-api: ^2.0
- humanmade/wordpress-pecl-memcached-object-cache: ^2.1
- humanmade/wp-redis: ^1.1
- symfony/yaml: ~5.3.6
- dev-main
- 2.0.0
- 1.3.3
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2
- 1.1
- 1.0
- 0.12
- 0.11
- 0.10
- dev-composer-2
- dev-19-allow-php-8.0
- dev-local-server-v9
- dev-feact/WC-503/add-elastoc-search-module
- dev-feat/WC-503/add-elastic-search-module
- dev-feat/WC-503/Local-Docker-Improvements
- dev-feat/WC-503/Local-Docker-Improvements-Local-Vip
This package is auto-updated.
Last update: 2024-12-10 22:06:12 UTC
README
A local development environment for WordPress VIP projects, built on Docker.
Dependencies
- Composer
- Docker Desktop (you can install Docker Machine directly if preferred)
Installation
Local VIP can be installed as a dependency within a Composer-based WordPress project:
composer require --dev humanmade/local-vip
Getting Started
Fill out your project's composer.json
to define the project name, domain, and subsites/subdomains you want to use:
"extra": { "local-vip": { "name": "test-vip", "domain": "test.local", "subdomains": true, "db-image": "biarms/mysql:5.7" "sites": { "subdomain": "Subsite Name" } } }
Your local domains will need to be mapped within you hosts file. For example, if your domain is test.local
, the following would need to be added to your hosts file.
# test.local
127.0.0.1 test.local
In your local server project you can run the following commands:
# Start the server cluster
composer server start
# Stop the server cluster
composer server stop
For full documentation click here.
Enterprise Search
Local VIP mimics VIP's Enterprise Search by using Elastic Search with mock variables to simulate a VIP environment.
Once the environment is created you can confirm the ES instances is running via Kibana at http://127.0.0.1:63917/kibana/app/kibana#/
In addition you can check the health of the environment in the Kibana console http://127.0.0.1:63917/kibana/app/kibana#/dev_tools/console?_g=() by executing GET _cluster/health?pretty
.
In order to leverage ES, the data needs to be indexed. By default, there is no data indexed in the ES environment. To index the data, use WP CLI and execute wp vip-search index --setup
.