Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.
/ vip-go-mu-dev Public archive

A Lando-based development environment for VIP Go mu-plugins

Notifications You must be signed in to change notification settings

Automattic/vip-go-mu-dev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VIP Go mu-plugins Dev

==============================

THIS REPO IS BEING DEPRECATED.

Please use https://docs.wpvip.com/technical-references/vip-local-development-environment/ instead.

==============================

A development environment for mu-plugins on VIP Go.

Install

  1. Clone repo.
  2. Install SVN: brew install svn (or use package manager of your choice).
  3. Install Lando.
  4. Install node+npm.
  5. Install Composer.
  6. ./vip-init.sh.

The environment can then be accessed at http://vip-go-dev.lndo.site (username/password is vipgo/password).

Tooling and debug

WP CLI

To run the wp CLI from the local shell, just use lando wp as normal. If for any reasons you need to execute the CLI from within the app container, you can shell into the container using lando ssh.

StatsD

StatsD is also reporting to the console as lando runs. To view the output, lando logs will show you all output logs including statsd. lando logs -f allows you to follow the logs and keep a persistent steam of log data outputting to your console.

Local development

You can run lando vip-switch git:<repo url> [optional -b, --branch <branch-name> ] to switch to the relevant VIP code repository.

Local plugins and themes directories (inside wp/wp-content are mounted in their respective places.

Multisite

You can enable multisite by running lando setup-multisite

You can add multisites after that by running lando add-site --slug=<slug> --title="<title>"

Add test data

You can add posts, users, etc... by running lando add-fake-data

You can delete this data by running lando delete-fake-data

This is done via wp-fixtures and the details of the defaults are available in test_fixtures.yml.

TODO / Possible Ideas / Improvements

  • Ability to use a multisite install as well.(Added)
  • Ability to override baseline config to tweak settings like PHP and WordPress versions.
  • Support for vip-sunrise.
  • Support for HTTP Concat.
  • Mock Files Service + Photon + Stream Wrapper support.
  • Support for developing and testing Cron Control runner.
  • Support for vip-e2e.

About

A Lando-based development environment for VIP Go mu-plugins

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published