mirror of
https://github.com/dbgate/dbgate
synced 2024-11-08 04:35:58 +00:00
13 lines
320 B
JavaScript
Executable File
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();
|