Skip to content

Commit

Permalink
chore: start otel in pm2 but not local
Browse files Browse the repository at this point in the history
  • Loading branch information
tokebe committed Dec 14, 2023
1 parent 3f13670 commit 7429b8e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions bte-pm2.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 7429b8e

Please sign in to comment.