dbgate/packages/serve/bin/dbgate-serve.js
2022-03-24 09:55:39 +01:00

13 lines
320 B
JavaScript
Executable File

#!/usr/bin/env node
const path = require('path');
require('dotenv').config();
global.API_PACKAGE = path.dirname(path.dirname(require.resolve('dbgate-api')));
global.PLUGINS_DIR = path.dirname(global.API_PACKAGE);
global.IS_NPM_DIST = true;
const dbgateApi = require('dbgate-api');
dbgateApi.getMainModule().start();