From b5375089ad1aa2a1771f2a1473e1c1f6bf37a610 Mon Sep 17 00:00:00 2001 From: Michael Ochmann Date: Sun, 3 Oct 2021 17:42:35 +0200 Subject: [PATCH] aaded logging to `pm2` --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ba383da..adb0600 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "build:js": "webpack --config webpack.config.js", "watch:css": "node-sass public/css/mdos.scss -wo public/css/", "watch:js": "webpack --config webpack.config.js --watch", - "install": "npm run build && pm2 start main.js --name mdos && pm2 save", + "install": "npm run build && export NODE_ENV=production && pm2 start main.js --log /var/log/mdos-web/production --name mdos && pm2 save", "remove": "pm2 stop mdos && pm2 delete mdos && pm2 save", "usermanager": "node bin/usermanager.js" },