Skip to content

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

Open
@Patabugen

Description

@Patabugen

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions