|
|
|
|
|
by alexisread
1229 days ago
|
|
Neat solution, sqlite gives you much more though. What happens with the .env files with inheritance eg. env.linux overridden by env.linux.local?
You need one url per permutation, or call them in the correct order, now you have a config for your config. What about if you require multiple local configurations for eg. testing inside and outside docker? What if you have several developers working on the same codebase with different settings? What if you have static data that changes with environment? Sqlite can answer all of this, including parsing quotes and handling filepaths in a uniform fashion |
|
file tree:
.env.local.deon file: Then the node process will be started with: If you want to take it a step further you could import values from a URL, even using a token from an environment variable for authentication, such as: Not sure what's the problem with several developers on the same codebase. Aren't they using their own, individual machines? Each developer can have their own environment file as they wish, or their own environment DEON_TOKEN.If the static data changes with the environment then it's not that static, or I don't know what you mean. If I were using deon, I would split the .base file into two or more, and import accordingly.
Not sure what you mean by "including parsing quotes and handling filepaths in a uniform fashion". Have you found a bug in deon?
Anyhow, if your use case is too complex, of course you will need special tooling, deon is more of a research for my own requirements and still needs to be written in a compiled language, now it is only for the JavaScript ecosystem.