From dc23473ec8044b5843965ed183b1412ef6ae28ba Mon Sep 17 00:00:00 2001 From: zeus Date: Sun, 22 Nov 2020 01:47:09 +0200 Subject: [PATCH] set --- supervisord-iot.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/supervisord-iot.conf b/supervisord-iot.conf index d747f32..9fbe207 100644 --- a/supervisord-iot.conf +++ b/supervisord-iot.conf @@ -6,7 +6,9 @@ stdout_logfile=/var/log/ttyd.log autorestart=true [program:pm2] -#command=bash -c 'sleep 5 && pm2-runtime /home/%(ENV_USER)s/crond/playground.config.js ' +environment = + NODE_PATH=/home/node/playground-myexample-nodejs/swarmlab-app/src/node_modules, + myTEST=bar command=bash -c 'sleep 5 && /home/%(ENV_USER)s/crond/playground-npm-run.sh ' user=node stdout_logfile=/var/log/pm2.log