Direnv: Flexible Environment Management | Works for Kubernetes Too

Поделиться
HTML-код
  • Опубликовано: 28 авг 2024

Комментарии • 4

  • @allengooch7
    @allengooch7 Месяц назад

    This is the way. I also use it for directory-specific AWS config. I tend to use dotenv `.env` files for app-specific config and direnv `.envrc` files for tools-specific config. It's been a life changer, for me at least.

    • @cloud-native-corner
      @cloud-native-corner  Месяц назад

      @@allengooch7 interesting distinction between .env for app and .envrc for tools. Do you load dotenv file via direnv stdlib?

    • @allengooch7
      @allengooch7 Месяц назад +1

      @@cloud-native-corner No, it's typically loaded programmatically by the app with whatever quality dotenv library exists for the language I'm working in, typically Python or Golang.

    • @cloud-native-corner
      @cloud-native-corner  Месяц назад

      @@allengooch7 That makes sence, as apps could also be containerized and loading variables separately would be much cleaner. Good pattern to keep in mind.