rannnn
V2EX  ›  Node.js

pm2 watch file 无限 respawn

  •  
  •   rannnn · Jun 17, 2014 · 4362 views
    This topic created in 4376 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   ·   5914 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 52ms · UTC 02:54 · PVG 10:54 · LAX 19:54 · JFK 22:54
    ♥ Do have faith in what you're doing.