26
loading...
This website collects cookies to deliver better user experience
yarn dev
for on micro-service then a yarn start
for react and so on.Child Manager
which lets you manager child processes for your project from just a simple config file.yarn add @pixium-digital/child-manager
npm install @pixium-digital/child-manager
yarn child-manager
childmanager.json
yarn child-manager --config="./myconfig.json"
{
"processes": [
{
"name": "Test Service",
"command": {
"executor": "node",
"args": ["TestService.js"],
"path": "./src/service",
"isWindows": false
},
"maxLogs": 200
},
{
"name": "Service 2",
"command": {
"executor": "yarn",
"args": ["start"],
"path": "./other-project/service",
"isWindows": false
},
"maxLogs": 200
}
],
"captureExit": true,
"longLive": false,
"debug": false
}
debug
: This will show more logs in the terminal in case something is not workinglongLive
: This is to force process to stay alive. Use carefully.captureExit
: This binds the exit of child manager so that it will kill all childsname
: The name of your servicemaxLogs
: The max number of logs to keep in memory (recommended 200)
command
: This houses the command line that will be launched
executor
: The command executor (yarn, npm, node)args
: Array or extra arguments that should be passedpath
: Where the command should be executedisWindows
: Is this running on windows system? if yes paths and executors will be automatically changed to be compatibleyarn script
a npm script
or even a command line