This Must-Use Plugin can facilitate automatic plugin installation/activation/deactivation based on environment (live, staging, local)
- Create
WPMU_PLUGIN_DIR
if not created already, typically aswp-content/mu-plugins
- Clone this project into that directory as a submodule:
git submodule add -f git@github.com:cimburadotcom/mu-cimbura.git
- Update submodules (TGM-Plugin-Activation) by running
git submodule update --init --recursive
in theWPMU_PLUGIN_DIR/mu-cimbura
directory. - Copy
10-mu-cimbura.php
from plugin directory intoWPMU_PLUGIN_DIR
- Copy
mu-cimbura-conf-example
directory from themu-cimbura
directory intoWPMU_PLUGIN_DIR
asmu-cimbura-conf
- Edit configurations files in
WPMU_PLUGIN_DIR/mu-cimbura-conf
to suit your site (base-config.php
,local-config.php
,staging-config.php
,live-config.php
) - Check the
mu-cimbura-conf
directory into your site repository