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
DDEV should not manage CRAFT_WEB_URL in .env (Craft CMS) #5665
Comments
I do with there was a .env.local in Craft CMS. I'm sure you know that you can tell DDEV not to manage any of this with |
Yep. In this case, it isn't really about project complexity, and I think adding
Craft, actually just consumes env vars, but doesn't require or use any kind of |
(thanks for the info on .env.local idea, but
doesn't much help DDEV to help people. Because the "you" is not DDEV right? |
Yep, was just clarifying why we don't currently support this natively within Craft. In the near future, Craft will be Laravel-based, which makes more formal use of dotenv as a dependency, so that will likely change then. |
Is there an existing issue for this?
Output of
ddev debug test
Expand `ddev debug test` diagnostic information
Expected Behavior
Setting
CRAFT_WEB_URL
to DDEV's primary URL is too prescriptive for Craft CMS and breaks multi-site functionality.I should be able to
ddev start
a Craft CMS project, and not have the@web
alias overwritten.Actual Behavior
On every start,
CRAFT_WEB_URL
is written to .env file, using the DDEV primary url, potentially breaking any Craft multisite installation.Steps To Reproduce
No response
Anything else?
This was added as a result of #4650.
In that discussion, I was mistaken and thought these would only be added initally (
ddev config
) as a starting point/suggestion, when in fact they are added everystart
.For further clarification,
CRAFT_WEB_URL
is meant to be configured to the hostname from the current request. If you are using DDEV'sadditional_hostnames
, this will not be accurate, so should not be set.The text was updated successfully, but these errors were encountered: