As a developer
I want to work on WP plugins/themes
Without overcomplicated local environment.
As a developer
I want to script my particular edge cases
So that my local environment can accommodate them.
Setup a simple WordPress local environment in a few minutes, using Multipass and shell scripting. It's currently suitable for bundle-less WordPress plugin and theme development that doesn't require a task queue and content search.
Provisioner features:
WordPress Features:
You do not need to know Docker or Ansible, Terraform or Chef, because this project keeps it simple.
./host.sh
then provide the admin/database password when asked.reset.sh
script.The hostname is based on the directory the scripts are running in. To provide a custom hostname prefix host.sh
or reset.sh
with WMM_HOSTNAME=myhostname
eg: $ WMM_HOSTNAME=dolly ./host.sh
. Note: WMM_HOSTNAME
values should
not include periods of tlds, the domain for the environment will end in .multipass
.
00-config.sh
. The environment will be setup with the requested PHP version.multipass shell <hostname>
for example wmm
. Once in the guest, run install_php <major.minor>
for example 8.2
. Switch PHP versions by running switch_php <major.minor>