refactor: address potential issues with deploy-compose.yml (#1220)

* chore: remove /config/loader

* chore: remove config/loader steps from Dockerfile.multi

* chore: remove install script
This commit is contained in:
Danny Avila 2023-11-25 16:34:51 -05:00 committed by GitHub
parent 4dab094855
commit 12209fe0dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 25 additions and 27 deletions

View file

@ -35,7 +35,8 @@ class Env {
if (fs.existsSync(this.envMap.default)) {
hasDefault = true;
dotenv.config({
path: this.resolve(this.envMap.default),
// path: this.resolve(this.envMap.default),
path: path.resolve(__dirname, '..', this.envMap.default),
});
} else {
console.warn('The default .env file was not found');
@ -49,7 +50,8 @@ class Env {
// check if the file exists
if (fs.existsSync(envFile)) {
dotenv.config({
path: this.resolve(envFile),
// path: this.resolve(envFile),
path: path.resolve(__dirname, '..', envFile),
});
} else if (!hasDefault) {
console.warn('No env files found, have you completed the install process?');