Skip to content

Commit

Permalink
Clean up logfile for dev starts (opendatahub-io#987)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewballantyne authored and bartoszmajsak committed Mar 30, 2023
1 parent 5dc2131 commit b8e21ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
},
"main": "src/server.ts",
"scripts": {
"clean": "rm -f ../logs/adminActivity.log",
"start": "npm run tsc && NODE_ENV=production node ./dist/server.js --log=1 --registry=localhost:50051",
"start:dev": "export NODE_TLS_REJECT_UNAUTHORIZED=0 && export NODE_ENV=development && nodemon src/server.ts --log=1 --registry=localhost:50051",
"start:dev": "npm run clean && export NODE_TLS_REJECT_UNAUTHORIZED=0 && export NODE_ENV=development && nodemon src/server.ts --log=1 --registry=localhost:50051",
"debug": "npm run tsc && export NODE_TLS_REJECT_UNAUTHORIZED=0 && export NODE_ENV=development && node --inspect ./dist/server.js --log=1 --registry=localhost:50051",
"build-only": "tsc -p . && node ./dist/server.js --log=1 --registry=localhost:50051 --buildonly",
"build": "npm run build:clean; npm run tsc",
Expand Down

0 comments on commit b8e21ab

Please sign in to comment.