mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
fixed dbgate npm edition
This commit is contained in:
parent
9cb2d397ad
commit
71f7a705c4
@ -100,7 +100,7 @@ function start(argument = null) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
} else if (argument == 'startNodeWeb') {
|
} else if (argument == 'startNodeWeb') {
|
||||||
app.use(express.static(path.join(__dirname, '../../dbgate-web/build')));
|
app.use(express.static(path.join(__dirname, '../../dbgate-web/public')));
|
||||||
findFreePort(5000, function (err, port) {
|
findFreePort(5000, function (err, port) {
|
||||||
server.listen(port, () => {
|
server.listen(port, () => {
|
||||||
console.log(`DbGate API listening on port ${port}`);
|
console.log(`DbGate API listening on port ${port}`);
|
||||||
|
@ -4,9 +4,12 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "cross-env API_URL=ORIGIN rollup -c",
|
"build": "cross-env API_URL=ORIGIN rollup -c",
|
||||||
"dev": "cross-env API_URL=http://localhost:3000 rollup -c -w",
|
"dev": "cross-env API_URL=http://localhost:3000 rollup -c -w",
|
||||||
"start": "sirv public",
|
"validate": "svelte-check",
|
||||||
"validate": "svelte-check"
|
"prepublishOnly": "yarn build"
|
||||||
},
|
},
|
||||||
|
"files": [
|
||||||
|
"public"
|
||||||
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@ant-design/colors": "^5.0.0",
|
"@ant-design/colors": "^5.0.0",
|
||||||
"@rollup/plugin-commonjs": "^17.0.0",
|
"@rollup/plugin-commonjs": "^17.0.0",
|
||||||
@ -42,9 +45,8 @@
|
|||||||
"@mdi/font": "^5.9.55",
|
"@mdi/font": "^5.9.55",
|
||||||
"file-selector": "^0.2.4",
|
"file-selector": "^0.2.4",
|
||||||
"resize-observer-polyfill": "^1.5.1",
|
"resize-observer-polyfill": "^1.5.1",
|
||||||
"sirv-cli": "^1.0.0",
|
|
||||||
"svelte-json-tree": "^0.1.0",
|
"svelte-json-tree": "^0.1.0",
|
||||||
"svelte-markdown": "^0.1.4",
|
"svelte-markdown": "^0.1.4",
|
||||||
"svelte-select": "^3.17.0"
|
"svelte-select": "^3.17.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user