Class DotEnv

java.lang.Object
dev.upcraft.sparkweave.platform.DotEnv

public class DotEnv extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    loads in the following order (later means it overwrites values from previous files): .env $side.env $side.$environment.env $side is the value of the current RuntimeEnvironmentType, $environment is either production or development
    static void
    load(Path path)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DotEnv

      public DotEnv()
  • Method Details

    • load

      public static void load(Path path)
    • load

      public static void load()
      loads in the following order (later means it overwrites values from previous files):
      1. .env
      2. $side.env
      3. $side.$environment.env
      $side is the value of the current RuntimeEnvironmentType, $environment is either production or development