Skip to content

Doesn't load the .env when the server is starting #1

Closed
@cbaconnier

Description

@cbaconnier

Tried with a fresh install of yii2.
When I start the server with php yii serve, the .env isn't loaded.
I found this workaround:

  1. renaming the .env file to .envv
  2. starting the server with php yii serve
  3. renaming the .envv to .env

Yii2 (2.0.5)
Windows 10
PHP 7.0.4

Perhaps, I missed something in the configuration?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions