Instance Methodvapor 4.114.1Vapor

load(overwrite:)

Loads this file’s KEY=VALUE pairs into the current process.

DotEnv.swift:228
func load(overwrite: Bool = false)

Parameters

overwrite

If true, values already existing in the process’ env will be overwritten. Defaults to false.

let file: DotEnvFile
file.load(overwrite: true) // loads all lines into the process