Add new npm scripts for explorer operations

-New npm scripts make syncing and running other explorer tasks easier, without needing to remember longer command syntax
-Updated README to explain new npm scripts and give recommendations on their usage. Also update sample crontab section
This commit is contained in:
Joe Uhren
2021-11-21 13:30:26 -07:00
parent 5d5719dfef
commit 4d202714fd
2 changed files with 40 additions and 2 deletions
+10 -1
View File
@@ -12,7 +12,16 @@
"start-pm2-debug": "npm run prestart \"pm2\" && $(which pm2) start ./bin/instance -i 0 --node-args=\"--stack-size=10000\" && $(which pm2) logs",
"stop-pm2": "$(which pm2) stop ./bin/instance",
"test": "$(which node) ./node_modules/jasmine/bin/jasmine.js test/*Spec.js",
"prestart": "sh ./scripts/prestart.sh"
"prestart": "sh ./scripts/prestart.sh",
"sync-blocks": "sh ./scripts/sync.sh $(which node) update",
"sync-markets": "sh ./scripts/sync.sh $(which node) market",
"sync-peers": "sh ./scripts/sync.sh $(which node) peers",
"sync-masternodes": "sh ./scripts/sync.sh $(which node) masternodes",
"check-blocks": "sh ./scripts/sync.sh $(which node) check",
"reindex": "sh ./scripts/sync.sh $(which node) reindex",
"reindex-rich": "sh ./scripts/sync.sh $(which node) reindex-rich",
"reindex-txcount": "sh ./scripts/sync.sh $(which node) reindex-txcount",
"reindex-last": "sh ./scripts/sync.sh $(which node) reindex-last"
},
"dependencies": {
"express": ">=4.17.1",