Skip to content
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

Make the docroot customisable (to something other than 'web') #4

Open
Patabugen opened this issue Nov 3, 2022 · 0 comments · May be fixed by #5
Open

Make the docroot customisable (to something other than 'web') #4

Patabugen opened this issue Nov 3, 2022 · 0 comments · May be fixed by #5

Comments

@Patabugen
Copy link

Description:

The library assumes that your WordPress installation is in a web/ folder in the same directory as the docker-compose, but doesn't mention this anywhere in the docs (and is different from Laravel which uses public/.

It would be useful to be able to customise this (without having to publish the config), and I think the docs should mention the requirement.

Solutions

I'm happy to have a go at both and submit a PR, but wanted to check if you had any opinions on how it should be done.

We could set an Environment variable something like WP_CLI_PATH which would be passed to any calls to wp (or we could use the wp server specific --docroot=

Or we could be more specific and specify the webroot path (though I'm not sure whether that'd ever be more useful than being able to set the root in general?).

Any thoughts?

@Patabugen Patabugen linked a pull request Dec 23, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant