Conversation
|
Size Change: 0 B Total Size: 827 kB ℹ️ View Unchanged
|
68af288 to
4e684bc
Compare
8f82ef8 to
c8a8482
Compare
|
interesting, I'm getting an error trying to run |
c8a8482 to
3682e30
Compare
|
Ah never mind that. It was because Docker wanted to install an update. |
- Moved test plugins to .wp-env.json
- include new test file for build-docker-compose-config
- Update changelog and readme to reference mu-plugins - support git/zip sources - add more examples to readme - fix readme type
3682e30 to
5a83a84
Compare
|
Thanks for the comments, I've resolved each of those now :) I'll merge once I get a ✅ from travis |
|
Is there some way that mappings can differentiate between the test and non-test environment? For example, the current I could possibly see an argument that the mappings should be kept simple and apply universally, though it's the same sort of argument I think would justify that "test" and "non-test" sites should just be multiple environments, not a first-class distinction. I'm also open to alternative approaches. Curious if there are any thoughts on this.
|
Yeah, this has been an issue since wp-env was created. Before this PR, it was hidden in the code.
Not yet. we started talking about this here: #21229 (comment) I have a WIP branch which allows for different configurations in each environment, which would also solve #22514. I haven't made a lot of progress on it lately, but I can bring it back up since it comes up a lot. |
Description
Adds support for granular WordPress directory mappings. For example, you can do the following in
.wp-env.json:{ "mappings": { "wp-content/plugins": "./path/to/lots-of-plugins" } }For the time being, I have only permitted local directory sources as values here. If folks want, though, it would be very easy to add git/zip source support to this as well.
How has this been tested?
Tested running wp-env start locally with these changes. I made sure that the mapped directory was mounted in WordPress, and that the plugins I expected to see also showed up in the plugins list. I also tested with themes.
Types of changes
New feature.
Checklist: