This commit is contained in:
Andrew Henry 2024-10-16 09:57:24 -07:00 committed by GitHub
parent d8c5095ebb
commit 890ddcac4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,15 +2,8 @@ import http from 'http';
import nano from 'nano';
import { parseArgs } from 'util';
const COUCH_URL = process.env.OPENMCT_COUCH_URL;
const COUCH_DB_NAME = process.env.OPENMCT_DATABASE_NAME;
if (!COUCH_URL || !COUCH_DB_NAME) {
console.error(
'Error: Environment variables OPENMCT_COUCH_URL and OPENMCT_DATABASE_NAME must be set.'
);
process.exit(1);
}
const COUCH_URL = process.env.OPENMCT_COUCH_URL || 'http://127.0.0.1:5984';
const COUCH_DB_NAME = process.env.OPENMCT_DATABASE_NAME || 'openmct';
const {
values: { couchUrl, database, lock, unlock, startObjectKeystring, user, pass }