Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

my-ci

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

my-ci - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

10

bin/app-start.js
#!/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);

6

ecosystem.config.js
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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc