From 011644eaaba2c50ec6c6e5d241ebd8e5e459e602 Mon Sep 17 00:00:00 2001 From: philc Date: Thu, 4 Jan 2024 11:19:48 +0100 Subject: [PATCH] modif package for pm2 --- package.json | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index b20124d..bd6b082 100755 --- a/package.json +++ b/package.json @@ -11,20 +11,16 @@ "type": "git" }, "scripts": { - "stoppm2": "pm2 stop apxtri.js", - "startpm2": "pm2 start apxtri.js mode:prod --log-date-format 'DD-MM HH:mm:ss.SSS'", - "deletepm2": "pm2 delete apxtri", - "restartpm2": "pm2 restart apxtri.js --log-date-format 'DD-MM HH:mm:ss.SSS'", - "startblockchain": "pm2 start models/Blockchains.js --log-date-format 'DD-MM HH:mm:ss:SSS'", - "logpm2": "pm2 logs apxtri.js --lines 200", + "startapx": "pm2 start apxtri.js --log-date-format 'DD-MM HH:mm:ss.SSS'", + "restartapx": "pm2 restart --log-date-format 'DD-MM HH:mm:ss.SSS'", "dev": "NODE_MODE=dev node apxtri.js", "unittest": "node unittest.js", "apidoc": "apidoc -c ../conf/apidoc/apidoc_$tribe.json -o ../nationchains/tribes/$tribe/www/cdn/apidoc/", "publishtestwall": "scp -r /media/phil/usbfarm/apxtowns/dev-ants/nationchains/tribes/$space phil@wall-ants://home/phil/apxtowns/testwall-ants/nationchains/tribes/$space/..", "publishwall": "scp -r /media/phil/usbfarm/apxtowns/dev-ants/nationchains/tribes/$space phil@wall-ants://home/phil/apxtowns/wall-ants/nationchains/tribes/$space/..", - "publishhome": "scp -r /media/phil/usbfarm/apxtowns/dev-ants/nationchains/tribes/$space phil@wall-ants://home/phil/apxtowns/wall-ants/nationchains/tribes/$space/.." + "publishhouse": "scp -r /media/phil/usbfarm/apxtowns/dev-ants/nationchains/tribes/$space phil@house-ants://home/phil/apxtowns/house-ants/nationchains/tribes/$space/.." }, - "commentscript": " tribe=tribeid yarn apidoc to build apidoc // space=adminapi/www/cdn/apidoc yarn publishtestwall ", + "commentscript": "cf wiki apxtri doc for details: yarn startpm2 -n teswallants, yarn pm2 stop testwallants, yarn pm2 delete testwallants, yarn pm2 logs --lines 200 testwall, yarn pm2 monit -n testwallants, yarn pm2 save tribe=tribeid yarn apidoc to build apidoc // space=adminapi/www/cdn/apidoc yarn publishtestwall ", "maintainers": [ { "name": "Philippe Colzy",