Skip to content

A Mill module for twelve-factor apps loading environment variables from a local file.

License

Notifications You must be signed in to change notification settings

deal-engine/mill-dotenv

 
 

Repository files navigation

mill-dotenv

Main workflow jitpack

A Mill module for loading environment variables from a local file.

Storing configuration in the environment is one of the tenets of a twelve-factor app. Anything that is likely to change between deployment environments–such as resource handles for databases or credentials for external services–should be extracted from the code into environment variables.

But it is not always practical to set environment variables on development machines or continuous integration servers where multiple projects are run. mill-dotenv loads variables from a .env file into ENV when the environment is bootstrapped.

mill-dotenv is intended to be used in development.

Usage

See the example project buildfile: example/build.sc.

Credits

The regular expression for parsing the env file has been borrowed from sbt-dotenv to support exactly the same format.

About

A Mill module for twelve-factor apps loading environment variables from a local file.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Scala 85.7%
  • Shell 14.3%