-
Notifications
You must be signed in to change notification settings - Fork 847
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow selecting which sites to make active #474
Comments
Great idea. Probably the best way to go about implementing this is to introduce a
For that matter, the file could have the list of files paths to search instead of the ones to exclude. In other words, if the includes file does not exist, use |
@westonruter thanks, that helps a lot. I'd lean toward having a list of paths to explicitly include, as opposed to exclude. Got any naming suggestions for the file?
|
+1. This is a great idea. |
As a big bonus for explicitly whitelisting paths to include, the performance of the provisioning will be drastically improved. If you have a lot of sites in your VVV like I do, and a lot of directories, it can take a long time for these |
Roger, so if the |
Yes, bingo. 👍 |
This is something I've been struggling with. I also run a ton of sites out of /www that I wouldn't mind skipping at times, even though I like keeping them around to reference code while developing. In my use case, I always wondered if I could just drop a file in the project directory called something like |
I think the filename should be something like |
Dig this idea. Agree with explicitly whitelisting paths to include. I would love if this transitioned to a YAML config file over time, though I think we're okay with an individual file right now. |
@jeremyfelt YAML is far enough out of my reach that I'm not the one for that 😄. I'll move forward with a simple text file, with each directory to include on a separate line. |
+1, this is great |
How about copying the webserver approach for naming, i.e. something like |
+1 |
@TobiasBg the problem with that is the sites being enabled will be arbitrary paths, not just directory names. You can't (or shouldn't) have a file named |
+1 but I have noted that there seems to be a lot of repeated work done when Would it be possible to only run the |
Any way I can help move this feature along? I'd also really love to be able to toggle the default sites on and off, hopefully before an initial |
@joeguilmette feel free to chip in with a PR for this feature request. After evaluating it and trying a couple of angles, I've decided it's beyond my abilities/time for now. |
Just shooting from the hip, but what about moving the entire root folder Then we'd just need some way to tell VVV not to load the db for sites in Another change I'd like to see is making the default WP installs optional. On Thu Nov 20 2014 at 9:48:09 PM Travis Northcutt [email protected]
|
If you really wanted to archive the sites like that, you could keep a sibling folder named archive in the vvv/ and move sites from www to archive. Possibly even better would be to symlink from a sites folder into www as you are working on them. |
It is now possible to selectively enable and disable sites through a YAML config file after the merge of #980. 🎉 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I keep a number of sites (~20 right now) on one VVV install. Most of those, however, are only around for the rare instance when I need to work on them, and 90%+ of the time, I don't need them available. To speed up
destroy
,halt
,up
,provision
, etc. it would be great to have a way to indicate which sites should be loaded at any given time. Perhaps a simple text file thatprovision.sh
can look for, and if found, would then use to load only the sites explicitly defined?I'm not sure if that's the best approach (and if it is, how exactly to implement that), but if given some direction, I'd be happy to submit a PR to implement this functionality.
The text was updated successfully, but these errors were encountered: