Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Console not loading environment from files #41140

Copy link
Copy link
Closed
@rmbl

Description

@rmbl
Issue body actions

Symfony version(s) affected: 5.3.0-BETA2

Description

bin/console does not load env variables from .env.local when being run. This leads to errors when trying to composer install --no-dev in a production environment.

How to reproduce

Use 5.3.0-BETA2, add APP_ENV=prod to .env.local and run bin/console cache:clear. On 5.3.0-BETA2 this displays the following:

[OK] Cache for the "dev" environment (debug=true) was successfully cleared.

When running in 5.2.0 the output is correct:

[OK] Cache for the "prod" environment (debug=false) was successfully cleared.

Possible Solution
Load .env files when starting bin/console

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.