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
Fix over-eager project env replacement, for #4197 #4437
Conversation
See bug reported in ddev#4197 (comment) Thanks @stasadev
Download the artifacts for this pull request: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works, thank you!
Also, I noticed that:
- It writes the db config to
.env
even if you haveomit_containers: [db]
- I use URL from
additional_hostnames
forAPP_URL
in Laravel, but it is always overridden with the primary URL (maybe you can use curl to check ifAPP_URL
is already reachable, and do not override it).
Thanks so much @stasadev -
|
|
@rfay Hey, every time I perform a |
That is the expected behavior, but you can just turn it off with But I'd love to have you explain in more detail why your laravel project doesn't use those so I could understand better. |
Thank you for getting back to me, does
We are using a remote staging database environment which is shared between development team members so the credentials are different to those defaults which are auto-populated by DDEV. Each team member has their own unique user credentials to access the database. |
I think I do recommend using |
The Problem/Issue/Bug:
See bug reported in
The application .env file replacement (for laravel, shopware, etc.) was matching partials on the key, so
How this PR Solves The Problem:
Manual Testing Instructions:
Try the env file suggested by @stasadev
Automated Testing Overview:
Added significant test in TestWriteProjectEnvFile
Related Issue Link(s):