mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-22 08:12:00 +02:00
chore: Add warning if mongodb url looks incorrect in install
This commit is contained in:
parent
cefdd1fb88
commit
4c340fd0ba
1 changed files with 4 additions and 0 deletions
|
@ -102,6 +102,10 @@ const askQuestion = (query) => {
|
||||||
'What is your mongodb url? (default: mongodb://127.0.0.1:27017/LibreChat)'
|
'What is your mongodb url? (default: mongodb://127.0.0.1:27017/LibreChat)'
|
||||||
);
|
);
|
||||||
env['MONGO_URI'] = mongodb || 'mongodb://127.0.0.1:27017/LibreChat';
|
env['MONGO_URI'] = mongodb || 'mongodb://127.0.0.1:27017/LibreChat';
|
||||||
|
// Very basic check to make sure they entered a url
|
||||||
|
if (!env['MONGO_URI'].includes('://')) {
|
||||||
|
console.warn('Warning: Your mongodb url looks incorrect, please double check it in the `.env` file.');
|
||||||
|
}
|
||||||
|
|
||||||
// Update the env file
|
// Update the env file
|
||||||
loader.writeEnvFile(rootEnvPath, env);
|
loader.writeEnvFile(rootEnvPath, env);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue