From 6d3491a2ecb78befe9978e4c573227f33556c0aa Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sun, 27 Mar 2022 14:25:11 +0800 Subject: [PATCH] 1 --- scripts/publish_pm2_cpp_i_n/ecosystem.config.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 scripts/publish_pm2_cpp_i_n/ecosystem.config.js diff --git a/scripts/publish_pm2_cpp_i_n/ecosystem.config.js b/scripts/publish_pm2_cpp_i_n/ecosystem.config.js new file mode 100644 index 0000000..e3de0be --- /dev/null +++ b/scripts/publish_pm2_cpp_i_n/ecosystem.config.js @@ -0,0 +1,13 @@ +const appName = process.argv[5]; +const n = process.argv[6]; +const i = process.argv[7]; +const execName = process.argv[8]; + +module.exports = { + apps: [{ + name: appName, + args: `-n${n} -i${i}`, + script: './' + execName, + cwd: 'bin' + }] +};