Closed tomjn closed 5 years ago
It might also be possible to parallelise provisioning the sites once a common vvv-init.sh
is present
This closes #125 and #9
Thanks Tom!
We might need to update /docs/troubleshooting.md
because of the pathname changes, but that's a low priority.
VVV preferentially checks
.vvv/
andprovision
subfolders in the root to save time. If it doesn't find what it's looking for though, it'll do a costly subfolder search.At the moment the main example for keeping this subfolder search is this meta environment. In addition, it will always load all the nginx configs and all the hosts files anyway because of how the provisioner works, even if the user only wants wptv provisioning for example.
So why not move them all into a
provision
subfolder, and merge the files? It's faster, and easier to maintain. I'd have preferred a.vvv
folder, but best to be back compatible.I also removed the hardcoding on the folder name, so now the meta environment will still work if you name the site
wpmeta
ormeta
, although it will be a bit strange if you have more than one defined but it was already like that.Future optimisations would involve a
provision/vvv-init.sh
that runs the othervvv-init.sh
files. Ideally having checked the config first