Skip to content
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

Provide a way to set application environment #52

Open
BoShurik opened this issue Sep 11, 2020 · 3 comments
Open

Provide a way to set application environment #52

BoShurik opened this issue Sep 11, 2020 · 3 comments
Labels
type:enhancement Enhancement

Comments

@BoShurik
Copy link

Now there is a note to not rebuild config in production but there is no method to set environment

@samdark samdark added the type:enhancement Enhancement label Sep 11, 2020
@samdark
Copy link
Member

samdark commented Sep 11, 2020

How about using environment variable as in https://github.com/yiisoft/yii-console/blob/master/bin/yii#L48?

@BoShurik
Copy link
Author

@samdark Yes, but this is not enough. Often I need different services definitions for different environment (e.g. logger). It would be great to provide standard way to do that. As I understand composer config plugin support this

@rustamwin
Copy link
Member

See yiisoft/config#64

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

No branches or pull requests

3 participants