ããã«ã¡ã¯ã@yoheiMuneã§ãã å æ¥PM2å ¥éã®è¨äºãæ¸ãã¾ããããä»æ¥ã¯ãã®ç¶ãã§ãPM2ã§æ¬çªãDEVãªã©ç°å¢ãã¨ã«ãç°å¢å¤æ°ãæå®ããæ¹æ³ãããã°ã«æ¸ãããã¨æãã¾ãã ç®æ¬¡ PM2ã§ç°å¢ãã¨ã«ç°å¢å¤æ°ãè¨å®ãã æ¬æ ¼çã«Node.jsã®ã¢ããªãéçºãã¦ããã¨ãç°å¢ãã¨ã«ç°å¢å¤æ°ã®å¤ãå¤æ´ããããã¨ãå¤ãã§ããæåãªãã®ã ã¨NODE_ENVã®ãããªå¤æ°ã ã£ããããã¡ã¤ã«ã®ä¿åå ãã£ã¬ã¯ããªã ã£ãããAPIã®ã¨ã³ããã¤ã³ãã ã£ãããã¨æ§ã ã§ãã PM2ã§ã¯èµ·åæã«ãç°å¢å¤æ°ãæå®ãã¦Node.jsã®ã¤ã³ã¹ã¿ã³ã¹ãç«ã¡ä¸ãããã¨ãå¯è½ã§ãã å ·ä½çã«ã¯ã¾ããèµ·åç¨ã®è¨å®ãã¡ã¤ã«ã«ã以ä¸ã®ãããªè¨è¿°ï¼envãenv_productionï¼ã追å ãã¾ãã // pm2config.json { "name": "myapp", "script": "app.js", "env": {
{{#tags}}- {{label}}
{{/tags}}