Remove flags, improve ENV handling

Following https://12factor.net/config, Corteza internals are now configurable
ONLT via environmental variables.

See .env.example for details
This commit is contained in:
Denis Arh
2019-05-30 01:04:07 +02:00
parent ba1118eb4f
commit 8592aa8d35
34 changed files with 364 additions and 691 deletions
+6 -5
View File
@@ -13,13 +13,14 @@ When system is build into a all-in-one binary or image,
app-specific commands can be accessed under a sub-command with the
same name as the app.
## Flags & environmental variables
Command and application behaviour can be adjusted using flags and/or environmental
variables. Flags have highest priority and override env. variables. Defaults that
are pre-set internally are optimized for production mode.
## Config
Command and application behaviour can be adjusted using environmental
variables. Defaults that are pre-set internally are optimized for production mode.
Make sure you read `/.env.example` for all the available options.
Note that defaults shown under `--help` are overridden by value from the accompanying
environemntal variable.
environmental variable.
## How to run: