Comparing version 1.1.1 to 1.1.2
#!/usr/bin/env node | ||
const shell = require('shelljs'); | ||
const path = require('path'); | ||
const configFilePaht = path.resolve(__dirname, '../ecosystem.config.js'); | ||
const arg = require('arg'); | ||
const configFilePath = path.resolve(__dirname, '../ecosystem.config.js'); | ||
shell.exec(`pm2 start ${configFilePaht}`); | ||
const args = process.argv.slice(2); // 去掉前两个参数 | ||
const argsStr = args.join(' '); // 将所有参数拼成字符串 | ||
const sh = `pm2 start ${configFilePath} -- ${argsStr}`; | ||
console.log(sh); | ||
shell.exec(sh); |
const { appLogPath } = require('./utils'); | ||
// const execArgs = ''; | ||
// console.log(process.argv); | ||
const args = process.argv.slice(5); // 去掉前4个参数 | ||
const argsStr = args.join(' '); // 将所有参数拼接成字符串 | ||
module.exports = { | ||
@@ -9,3 +13,3 @@ apps: [ | ||
script: './app/start.js', | ||
// args: execArgs, | ||
args: argsStr, | ||
env: { | ||
@@ -12,0 +16,0 @@ NODE_ENV: 'sit', |
{ | ||
"name": "my-ci", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11083
290