mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 11:56:00 +00:00
cypress test WIP
This commit is contained in:
@@ -78,8 +78,8 @@ function start() {
|
||||
app.use(getExpressPath('/'), express.static('/home/dbgate-docker/public'));
|
||||
} else if (platformInfo.isAwsUbuntuLayout) {
|
||||
app.use(getExpressPath('/'), express.static('/home/ubuntu/build/public'));
|
||||
} else if (processArgs.staticDir) {
|
||||
app.use(getExpressPath('/'), express.static(processArgs.staticDir));
|
||||
} else if (processArgs.runPackerBuild) {
|
||||
app.use(getExpressPath('/'), express.static(path.resolve('packer/build/public')));
|
||||
} else if (platformInfo.isNpmDist) {
|
||||
app.use(
|
||||
getExpressPath('/'),
|
||||
|
||||
@@ -96,6 +96,9 @@ function packagedPluginsDir() {
|
||||
// return path.resolve(__dirname, '../../plugins');
|
||||
// }
|
||||
}
|
||||
if (processArgs.runPackerBuild) {
|
||||
return path.resolve('packer/build/plugins');
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ const workspaceDir = getNamedArg('--workspace-dir');
|
||||
const processDisplayName = getNamedArg('--process-display-name');
|
||||
const listenApi = process.argv.includes('--listen-api');
|
||||
const listenApiChild = process.argv.includes('--listen-api-child') || listenApi;
|
||||
const staticDir = getNamedArg('--static-dir');
|
||||
const runPackerBuild = process.argv.includes('--run-packer-build');
|
||||
|
||||
function getPassArgs() {
|
||||
const res = [];
|
||||
@@ -24,6 +24,9 @@ function getPassArgs() {
|
||||
if (listenApiChild) {
|
||||
res.push('listen-api-child');
|
||||
}
|
||||
if (runPackerBuild) {
|
||||
res.push('--run-packer-build');
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
@@ -37,5 +40,5 @@ module.exports = {
|
||||
listenApi,
|
||||
listenApiChild,
|
||||
processDisplayName,
|
||||
staticDir,
|
||||
runPackerBuild,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user