diff --git a/bte-pm2.json b/bte-pm2.json index 3b286188..06e9b38b 100644 --- a/bte-pm2.json +++ b/bte-pm2.json @@ -4,6 +4,10 @@ "name": "bte-trapi", "cwd": ".", "script": "./packages/bte-server/built/server.js", + "node_args": [ + "--require", + "./packages/bte-server/built/controllers/opentelemetry.js" + ], "exec_mode": "cluster", "instances": 4, "autorestart": true, diff --git a/package.json b/package.json index c25af375..6c4907ca 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "basic-start": "node .", "start": "./scripts/start_server.sh", "stop": "./scripts/stop_server.sh", - "watch": "nodemon -e js,mjs,json,ts --watch './packages/**/src/*' './packages/**/data/*' --exec 'pnpm run build && node --require ./packages/bte-server/built/controllers/opentelemetry.js .'", + "watch": "nodemon -e js,mjs,json,ts --watch './packages/**/src/*' './packages/**/data/*' --exec 'pnpm run build && node .'", "debug": "DEBUG=biomedical-id-resolver,bte* pnpm run watch" }, "engines": {