Open westonruter opened 5 years ago
I never particularly liked the need for build
and src
in the domain name, as this may have all sorts of weird side effects in multisite. It is technically already possible to run from src, all you'd need to do is adjust the path core should be used from (for example public/core-git/src
instead of public/core-git/build
).
Running from src vs build was another reason I wanted to implement the flexibility of exchanging the core directory, in addition to git vs svn.
It's a bit annoying that the environment variables don't persist (hopefully fixed soon, but even without it you could at least rely on wp-cli.yml
), but I think that part is sufficient to handle the src vs build approach.
Now that we can run from src again this should be an option for this Lando setup.
In large part, I believe it would involve modifying the
.lando.yml
as follows:Additionally, we'd need to modify
_wordpressdev_detect_core_path_relative()
to look atHTTP_HOST
to determine theWP_CORE_PATH_RELATIVE
:https://github.com/felixarntz/wordpressdev/blob/c8d0a83040f97e91216a5117448c6375e291dca8/public/functions.php#L8-L44