Bugfix
This commit is contained in:
parent
e75d08ca10
commit
0bae517554
@ -71,12 +71,6 @@ function startProcess({ command, preflight, redeploy_file, port, first_run }) {
|
||||
console.log("******************************");
|
||||
|
||||
try {
|
||||
const runPreflight = preflightFn(preflight);
|
||||
|
||||
if (!runPreflight) {
|
||||
// TODO: Action to take if preflight fails
|
||||
}
|
||||
|
||||
if (!preflight) {
|
||||
console.log(
|
||||
`${colors.FgRed}Error:${colors.Reset} No preflight included in config file. If you don't want to run any preflight command simply add an empty array.`
|
||||
@ -84,6 +78,15 @@ function startProcess({ command, preflight, redeploy_file, port, first_run }) {
|
||||
process.exit();
|
||||
}
|
||||
|
||||
const runPreflight = preflightFn(preflight);
|
||||
|
||||
if (!runPreflight) {
|
||||
// TODO: Action to take if preflight fails
|
||||
|
||||
console.log(
|
||||
`${colors.FgRed}Error:${colors.Reset} No preflight included in config file. If you don't want to run any preflight command simply add an empty array.`
|
||||
);
|
||||
} else {
|
||||
killChild(port).then((kill) => {
|
||||
if (kill) {
|
||||
childProcess = run(command);
|
||||
@ -91,6 +94,7 @@ function startProcess({ command, preflight, redeploy_file, port, first_run }) {
|
||||
process.exit();
|
||||
}
|
||||
});
|
||||
}
|
||||
} catch (/** @type {*} */ error) {
|
||||
console.log(
|
||||
`${colors.FgRed}Error:${colors.Reset} killing child processes => ${error.message}`
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "nodecid",
|
||||
"version": "1.0.3",
|
||||
"version": "1.0.4",
|
||||
"description": "Simple CI/CD process",
|
||||
"main": "index.js",
|
||||
"bin": {
|
||||
|
Loading…
Reference in New Issue
Block a user