always set default value instead of .env

This commit is contained in:
tkow 2019-08-01 18:04:41 +09:00 committed by Luan Curti
parent 29692093b4
commit da7aef3a88
1 changed files with 1 additions and 3 deletions

View File

@ -22,8 +22,8 @@ def getCurrentFlavor() {
}
def loadDotEnv(flavor = getCurrentFlavor()) {
def envFile = ".env"
def envFile = project.hasProperty("defaultEnvFile") ? project.defaultEnvFile : ".env"
if (System.env['ENVFILE']) {
envFile = System.env['ENVFILE']
} else if (System.getProperty('ENVFILE')) {
@ -36,8 +36,6 @@ def loadDotEnv(flavor = getCurrentFlavor()) {
return true
}
}
} else if (project.hasProperty("defaultEnvFile")) {
envFile = project.defaultEnvFile
}
def env = [:]