Amber: idea: .env file

Created on 6 Apr 2018  路  2Comments  路  Source: amberframework/amber

Description

I used a lot of frameworks, and the most of them are using an .env file
Maybe it is a good idea to add an .env file to amber, so it is easy to change the config?

enhancement discussion

Most helpful comment

.env is a nice tool to mock environment variables in development, but it's not a good way to store all the config an application needs. It's easy enough to add something like cr-dotenv to an amber project if you want it, but the out of the box configuration is designed so that you don't need to use or specify environment variables in a file or elsewhere.

Amber has config/development.yml and friends because yaml is a better way to store and document configuration parameters than a flat file and because not everything should be an environment variable.

All 2 comments

/cc @amberframework/contributors

.env is a nice tool to mock environment variables in development, but it's not a good way to store all the config an application needs. It's easy enough to add something like cr-dotenv to an amber project if you want it, but the out of the box configuration is designed so that you don't need to use or specify environment variables in a file or elsewhere.

Amber has config/development.yml and friends because yaml is a better way to store and document configuration parameters than a flat file and because not everything should be an environment variable.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

blankoworld picture blankoworld  路  7Comments

eliasjpr picture eliasjpr  路  6Comments

faustinoaq picture faustinoaq  路  4Comments

conradwt picture conradwt  路  3Comments

netwarp picture netwarp  路  6Comments