Skip to content

Commit

Permalink
NPM script to monitor access
Browse files Browse the repository at this point in the history
  • Loading branch information
kucingbasah737 committed Nov 27, 2023
1 parent a8ff035 commit 9f3532f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
"test": "mocha --recursive test",
"postversion": "git push && git push --tags",
"version": "auto-changelog -p --commit-url https://github.com/kucingbasah737/redirector/commit/{id} --compare-url https://github.com/kucingbasah737/redirector/compare/{from}...{to} --issue-url https://github.com/kucingbasah737/redirector/issues/{id} && git add CHANGELOG.md",
"start": "NODE_ENV=production node index.js serve",
"dev": "LOG_LEVEL=debug nodemon index.js serve",
"start": "NODE_ENV=production node index.js serve"
"monitor-access": "tail -f logs/access.json | jq '. | {xid: .xid, date: .localDate, url: .url, status: .status, ip: .remoteAddr, userAgent: .userAgent, user: .loginedAs}'"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 9f3532f

Please sign in to comment.