Skip to content

Commit

Permalink
Add commands for intraday sync and resets
Browse files Browse the repository at this point in the history
  • Loading branch information
nihey committed Aug 10, 2019
1 parent 4d5aaed commit f14a19f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crons/updater.cron
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
NODE_ENV=production
0 18-23,0-5 * * 1-6 cd /var/www && npm run update >> /var/log/updater.log 2>&1
30 5 * * 1-5 cd /var/www && npm run intraday-reset >> /var/log/id-reset.log 2>&1
*/10 9-18 * * 1-5 cd /var/www && npm run intraday-sync >> /var/log/id-sync.log 2>&1
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
"serve": "fastify start bin/server.js -p 7000 -a 0.0.0.0 -l debug -w",
"serve-production": "NODE_ENV=production fastify start bin/server.js -p 7000 -a 0.0.0.0 -l debug",
"build": "node --max-old-space-size=8192 ./bin/build.js",
"intraday-reset": "node --max-old-space-size=8192 ./bin/intraday-reset.js",
"intraday-sync": "node --max-old-space-size=8192 ./bin/intraday-sync.js",
"update": "node --max-old-space-size=8192 ./bin/build.js --update",
"lint": "eslint bin/* lib/ --fix",
"test": "npm run lint"
Expand Down

0 comments on commit f14a19f

Please sign in to comment.