mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 08:20:14 +01:00
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:
parent
4dab094855
commit
12209fe0dd
11 changed files with 25 additions and 27 deletions
|
|
@ -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?');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue