Skip to content

[APP_CACHE_DIR] Ensure a split per environment when using that new variable #37232

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

Merged
merged 1 commit into from
Jun 12, 2020
Merged

Conversation

Plopix
Copy link
Contributor

@Plopix Plopix commented Jun 11, 2020

Q A
Branch master
Bug fix? no
New feature? no
Deprecations? no
License MIT
Doc PR symfony/symfony-docs#13819

All the explanation here: symfony/symfony-docs#13819

@Plopix Plopix changed the title Ensure a split per environment [APP_CACHE_DIR] Ensure a split per environment when using that new variable Jun 11, 2020
@fabpot
Copy link
Member

fabpot commented Jun 12, 2020

Thank you @Plopix.

@fabpot fabpot merged commit 6b499e6 into symfony:master Jun 12, 2020
javiereguiluz added a commit to symfony/symfony-docs that referenced this pull request Jun 13, 2020
…e ENV (Plopix)

This PR was merged into the master branch.

Discussion
----------

Provides a way to override cache and log folders from the ENV

Related to this new feature symfony/symfony#37114.

But I wonder if we have not oversimplified this PR: symfony/symfony#37114

Actually doing the documentation #13787 I figured that with #37114 we removed the important split per `env`.

In development mode (docker or not) we could definitely have the same project working in N Symfony different environments and this new `APP_CACHE_DIR` will only set the same path for all environments.

That would be manageable in the Virtualhost but in CLI that would be a pain to manage.
Also, we could rely on the DotEnv mechanism, but that could be really easy to forget.

I wonder if we should not change the code to: symfony/symfony#37232

Depending on the decisions I will update the doc here.

Commits
-------

88b081c Provides a way to override cache and log folders from the ENV
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants