rannnn
V2EX  ›  Node.js

pm2 watch file 无限 respawn

  •  
  •   rannnn · Jun 17, 2014 · 4399 views
    This topic created in 4394 days ago, the information mentioned may be changed or developed.
    watch 配置如下
    watch: ["app.js", "src"]

    目录结构
    log/
    src/
    app.js

    用 git pull 更新 changes 会导致无限 respawn 耗尽主机资源
    不知道有没有人遇到过这个情况。或者是我配置的姿势不正确?

    谢谢
    3 replies    2014-06-18 10:13:46 +08:00
    lijingyu68
        1
    lijingyu68  
       Jun 17, 2014
    我的也是。
    coinxu
        2
    coinxu  
       Jun 18, 2014
    logs下面不停的产生日志导致的吗?
    rannnn
        3
    rannnn  
    OP
       Jun 18, 2014
    @coinxu 排除log也会。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2895 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 07:48 · PVG 15:48 · LAX 00:48 · JFK 03:48
    ♥ Do have faith in what you're doing.