WordPress / meta-environment

A collection of scripts that provision the official WordPress.org websites into a Varying Vagrant Vagrants installation.
190 stars 69 forks source link

Speed up Initial Provision #128

Closed tomjn closed 5 years ago

tomjn commented 5 years ago

By putting in a provision/vvv-init.sh and loading the other provisioners, VVV preferentially loads it, avoiding a folder search that takes time.

This also means that in the future the check to see if a site should be provisioned can be moved here, simplifying things, or even parallelising things. Note that i haven't tested this yet, it might be necessary to load the helper script in this file and remove it from the other provisioners

iandunn commented 5 years ago

Long term it'd be good to make it DRY, but I think it'll be fine to leave the helper script in the individual files for now.

tomjn commented 5 years ago

Oh I agree, I just didn't know if it would generate an error or not when ran