Skip to content

Overriding values from .env.local.php is not possible and is not equivalent usingDotEnv #516

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

Closed
bendavies opened this issue Jun 14, 2019 · 6 comments

Comments

@bendavies
Copy link

bendavies commented Jun 14, 2019

This #476, reopened, as it wasn't fixed.

It is not possible to override env.local.php with real env vars.
That is, using composer dump-env is not equivalent to using DotEnv.

Please see this repository for a reproducer and the README for a description of the problem.
https://github.com/bendavies/symfony-flex-env-issue

Thanks

@bendavies bendavies changed the title Overriding values from .env.local.php is not possible and not not equivalent usingDotEnv Overriding values from .env.local.php is not possible and is not equivalent usingDotEnv Jun 14, 2019
@xabbuh xabbuh closed this as completed Jun 14, 2019
@mareksuscak
Copy link

We got tripped up by this as well. What's the status of this issue? Doesn't seem to work still.

@teohhanhui
Copy link

teohhanhui commented Jul 19, 2019

@mareksuscak It should have been fixed by symfony/recipes#611. Are you using the latest versions? (Perhaps you need to take the changes manually from the recipe.) What are the issues you're having?

@mareksuscak
Copy link

@teohhanhui yeah just realized we need to sync config/bootstrap.php manually. what a pain. this really should get documented in its own blog post.

@mareksuscak
Copy link

is it possible to rerun recipes with a command by any chance?

@tristanbes
Copy link

yes @mareksuscak :

composer sync-recipes --force

⚠️ You need to review your modified files one by one because ALL the reciepes will be re-run, so you'll loose some of your configuration.

There's a PR opened that will add the feature to re-run only 1 reciepe. So hopefully that'll change soon.

@mareksuscak
Copy link

sweet, thank you so much guys 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants