Skip to content

Instantly share code, notes, and snippets.

@kiddkai
Last active October 29, 2016 12:42
Show Gist options
  • Save kiddkai/22f871ec71055e22fc903ad80b8a2ddf to your computer and use it in GitHub Desktop.
Save kiddkai/22f871ec71055e22fc903ad80b8a2ddf to your computer and use it in GitHub Desktop.

CLI

nash --env-file $(pwd)/foo.senv -- printenv

senv

Normal env file support.

PORT=80
HOST=SOMETHING

Extra service env support(s3).

(s3 {:bucket "" :key ""}
  PG_URL=(val .pg_url")
  PG_USERNAME=(val ".pg_username"))

Vault

(vault {:path "/v1/xxx"}
  PG_URL=(val ".pg_url")
  PG_USERNAME=(val ".pg_username"))

So, as a whole file uses different services:

PORT=80
HOST=SOMETHING

(s3 {:bucket "" :key ""}
  PG_URL=(val .pg_url")
  PG_USERNAME=(val ".pg_username"))

(vault {:path "/v1/xxx"}
  PG_URL=(val ".pg_url")
  PG_USERNAME=(val ".pg_username"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment