-
Notifications
You must be signed in to change notification settings - Fork 7
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
Map Core to local file system #7
Comments
This can be done in the .wp-env.json file via something like this: {
"core": "./wordpress"
} It has some side effects that are annoying, like having a modified .htaccess file constantly showing up in your WP directory that makes the working directory dirty. I generally save this for the .wp-env.override.json file, so I can just turn it on when I need to debug something or check out a different version of WP, and then turn it off again when I don't want to deal with it. |
ah, thanks. that just created an empty I could add i can try again later, but don't wanna go any further down that rabbit hole today |
Well, that was just an example. It has to point to a directory that already has WordPress in it. More here. |
Ah, I was thinking it was mapping the instance of WP already installed inside the container to the local system, but it's the other way around. It's also the top-level I'll see what issues I run into, like the |
Not sure if wp-env can do this, but it'd be helpful to have the WordPress folder inside the container mapped to the local filesystem. A few use cases
var_dump()
in a core file for quick debuggingThe text was updated successfully, but these errors were encountered: