dotenv config in dbgate-serve

This commit is contained in:
Jan Prochazka
2022-03-13 17:14:04 +01:00
parent 25015f35d5
commit b6cc77c7fe
4 changed files with 23 additions and 6 deletions

View File

@@ -1,6 +1,7 @@
#!/usr/bin/env node
const path = require('path');
require('dotenv').config();
global.dbgateApiModulePath = path.dirname(path.dirname(require.resolve('dbgate-api')));
global.dbgateApiPackagedPluginsPath = path.dirname(global.dbgateApiModulePath);

View File

@@ -19,13 +19,14 @@
],
"dependencies": {
"dbgate-api": "^4.1.1",
"dbgate-web": "^4.1.1",
"dbgate-plugin-csv": "^4.1.1",
"dbgate-plugin-xml": "^4.1.1",
"dbgate-plugin-excel": "^4.1.1",
"dbgate-plugin-mongo": "^4.1.1",
"dbgate-plugin-mysql": "^4.1.1",
"dbgate-plugin-mssql": "^4.1.1",
"dbgate-plugin-postgres": "^4.1.1"
"dbgate-plugin-mysql": "^4.1.1",
"dbgate-plugin-postgres": "^4.1.1",
"dbgate-plugin-xml": "^4.1.1",
"dbgate-web": "^4.1.1",
"dotenv": "^16.0.0"
}
}
}