美文网首页
egg scripts

egg scripts

作者: mocept | 来源:发表于2018-04-03 09:30 被阅读0次

服务启动和停止

坑:

同一个服务器上运行了两个egg项目, 直接使用npm stop会杀死所有egg master, 导致各种奇怪进程错误

解决

开启和停止都指定title,

官方说的是 --title process title description, use for kill grep

都指定对应的port和title才能准确无误地杀死对应进程

"sit": "egg-scripts start --port=7001 --daemon --title=egg-server-loan --env=test",
"start": "NODE_ENV=production egg-scripts start --port=7001 --daemon --title=egg-server-loan --env=prod",
  "stop": "egg-scripts stop --title=egg-server-loan",

相关文章

  • egg scripts

    服务启动和停止 坑: 同一个服务器上运行了两个egg项目, 直接使用npm stop会杀死所有egg master...

  • Egg进阶

    Egg进阶与实战 Debug 添加 npm scripts 到 package.json: egg-bin 会智能...

  • egg+mongodb 配置

    安装egg npm i egg-init -g egg-init egg-example --type=simpl...

  • egg笔记

    创建egg项目 npm i egg-init -g egg-init egg-demo --type=simpl...

  • Error: EACCES: permission denied

    全局安装egg-init后,通过 egg-init egg --type=simple 命令创建egg项目,报错 ...

  • egg

    一 、egg.js之解决跨域问题(egg-cors) 下载 egg-cors 包npm i egg-cors --...

  • 使用egg + sequelizejs 开发一个电商平台

    egg-commerce https://github.com/sfyr111/egg-commerce egg ...

  • egg 相关资源

    egg-onerror : egg 异常捕获 https://github.com/eggjs/egg-onerror

  • egg-mongoose 增删改查

    egg 基本框架的搭建 egg.js官网 一、egg.js 添加 egg-mongoose 插件 1. 在plug...

  • 课程表后台基础框架文档

    egg-syllabus-framework 快速开始 下载egg模板,并安装依赖 安装egg-syllabus-...

网友评论

      本文标题:egg scripts

      本文链接:https://www.haomeiwen.com/subject/ljxfhftx.html