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

egg-cluster-script

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

egg-cluster-script

egg cluster start bin

  • 0.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

eggjs 部署脚本

仿造egg-script的集群热部署方案,支持单机集群的热部署平滑重启更新

支持egg-script启动日志

采用ipc通信代替agent-worker管理worker的重启,官方的agent-worker太复杂,先代替一下

installation

npm install egg-cluster-script --save-dev

usage

npx eggcbl <command> [...options]

Command

commanddescription
start启动服务
stop终止服务
reload重启集群,平滑模式

Options

参数在作用于服务启动的时候

optiondescriptionvalue type
'-i, --instances <n>'worker进程数,default 1Number
'-p, --port <p>'egg应用启动监听端口Number
'-t, --title <t>'egg应用名称String
'-d, --daemon'守护进程模式,添加此参数后,服务启动后会进入后台守护进程模式不需要参数值

todo

  • 添加command: startOrReload 自动判断是否需要启动或重启
  • 支持所有egg-script参数
  • 添加更多参数
  • 优化ipc
  • 想要什么,提issue吧

Keywords

FAQs

Package last updated on 23 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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