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
Add touch .env to scaffolding #468
Comments
Are .env files required? What error do you get without the file? |
@YesCT why did you need to add it, what happens without it? .env files should only be for local development, not remote deployments |
@davereid @justafish we were getting this error at the 'Install and Start DDEV' step
|
I don't see |
I also think generally we encourage the use of https://github.com/vlucas/phpdotenv as a require-dev dependency instead of loading the .env file via DDEV configuration. The DDEV docs themselves say to use a |
I noticed that we have
This file was causing the error. Thank you for your help! |
@justafish @davereid Thank you so much for pointing us in the right direction. Closing this since my questions are answered. :) |
For pantheon multidev deploys, we needed to add:
We plan to have a followup to prevent the change from being overwritten with something like https://github.com/Lullabot/drainpipe/blob/main/README.md#nightwatch
Question 1: Are we missing something else where we should be setting .env?
Question 2: Is this common enough that making sure .env isn't empty should be added to the default scaffold file??
The text was updated successfully, but these errors were encountered: