告别node-forever,拥抱PM2 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
amxku
V2EX    Node.js

告别node-forever,拥抱PM2

  •  
  •   amxku 2013-09-27 10:29:17 +08:00 7079 次点击
    这是一个创建于 4402 天前的主题,其中的信息可能已经有所发展或是发生改变。
    19 条回复    1970-01-01 08:00:00 +08:00
    ququzone
        1
    ququzone  
       2013-09-27 10:39:37 +08:00   1
    nodemon for development, pm2 for production
    https://medium.com/tech-talk/e7c0b0e5ce3c
    zhujinliang
        2
    zhujinliang  
       2013-09-27 11:37:09 +08:00
    整天拥抱PM2.5了
    hfcorriez
        3
    hfcorriez  
       2013-09-27 11:39:16 +08:00
    forever的实现有点扯淡,看看PM2如何
    EchoFUN
        4
    EchoFUN  
       2013-09-27 11:43:20 +08:00
    前两天刚看了一篇《告别pm2,拥抱forever》的文章。
    darkyoung
        5
    darkyoung  
       2013-09-27 11:47:00 +08:00
    @Wiredcraft 团队的产品吧
    turing
        6
    turing  
       2013-09-27 12:27:29 +08:00
    啊,仔细看看了文档,才发现PM2有monitor api,可以包装一个web app用来监控生产环境下的服务器状况了,这个真心好~ 准备开坑~
    loser
        7
    loser  
       2013-09-27 13:39:34 +08:00
    ....
    阿马叉库!!!
    deepure
        8
    deepure  
       2013-09-27 14:08:18 +08:00 via iPhone
    @turing pm2其实自带一个监控状态的app pm2 web

    ps:关于pm2好像只有这一篇文章被不断转载,有点杯具
    turing
        9
    turing  
       2013-09-27 14:14:13 +08:00
    @deepure 恩,那个就是返回一个json
    shiny
        10
    shiny  
       2013-09-27 14:24:04 +08:00   1
    有人用 pm2 集成了一个 node 部署软件,集成 git push 和 pm2 restart, https://github.com/yyx990803/pod

    目前正在用。
    turing
        11
    turing  
       2013-09-27 14:29:22 +08:00
    @shiny

    感谢分享,这人貌似是写html5 clear的那位,在 Google 做前端
    deepure
        12
    deepure  
       2013-09-27 14:32:28 +08:00
    @shiny 你用pod是运行在什么权限下的?
    我用的时候运行在类似www-data低权限用户下一直有问题。
    shiny
        13
    shiny  
       2013-09-27 14:40:51 +08:00
    @deepure 偷懒,用了 root。它会在 home 目录里写一个 .podrc 文件以及 .pm2 目录。你确认你的 www-data 的 home 目录存在吗?
    deepure
        14
    deepure  
       2013-09-27 14:54:50 +08:00
    @shiny www-data默认就有home目录,应该是没有vi的权限会出错,后来直接用pm2了就没再仔细看
    dulao5
        15
    dulao5  
       2013-09-27 15:18:53 +08:00
    弱弱的问一句,pm2 和 pm (https://github.com/aleafs/pm/) 有什么关系吗?
    deepure
        16
    deepure  
       2013-09-27 15:58:22 +08:00
    @turing pm2的pull里有一个,不知道为什么一直没出现https://github.com/Unitech/pm2/pull/36
    turing
        17
    turing  
       2013-09-27 16:18:57 +08:00
    @deepure

    I will take some time to review this during the week end

    通常说这种话一般隔几个月才会去处理。。。unitech犯拖延症了吧。。
    deepure
        18
    deepure  
       2013-09-27 16:28:02 +08:00 via iPhone
    @turing 哈哈,你快点儿写
    turing
        19
    turing  
       2013-10-10 21:26:16 +08:00
    @deepure 前几天开坑的pm2-panel因为去国庆去杭州了几天就没继续写,今天一看pm2的作者unitech star了这个项目-,- 看来我还是赶快写完吧。。
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     5382 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 28ms UTC 01:19 PVG 09:19 LAX 18:19 JFK 21:19
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86