News for hackers. Stuff that matters.
Re:Twelve-factor app development on Google Cloud by manigandham on Friday November 01, 2019 @12:56AM (#21416372)
Env vars are universally supported, globally available, and simple to manage. Files mean yet another deployment artifact that has to be stored somewhere, and now tied to a location.

Sometimes that location is communicated through an env var, and that point why not just set all config that way?

Re:Twelve-factor app development on Google Cloud by AlphaSite on Friday November 01, 2019 @01:02AM (#21416402)
If you have something like k8s it becomes trivial to use files vs end vars.
Re:Twelve-factor app development on Google Cloud by manigandham on Friday November 01, 2019 @03:08AM (#21416771)
How so? You still have to edit the file, save it somewhere, then mount it as a volume and agree on a location.
Re:Twelve-factor app development on Google Cloud by yencabulator on Friday November 01, 2019 @11:50AM (#21420078)
The configuration file can be inline in the yaml, ConfigMaps take care of shuffling bytes around for you, and for a specific app it's config can always be at a fixed path.