integrating PM2 process manager for run livenet and testnet simultaneously
This commit is contained in:
parent
ecf28e085a
commit
c18d05f50c
|
@ -79,7 +79,8 @@
|
|||
"chai": "~1.8.1",
|
||||
"bitcore": "git://github.com/bitpay/bitcore.git",
|
||||
"bufferput": "git://github.com/bitpay/node-bufferput.git",
|
||||
"xmlhttprequest": "~1.6.0"
|
||||
"xmlhttprequest": "~1.6.0",
|
||||
"pm2": "*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"grunt-contrib-watch": "latest",
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
NODE_ENV='production' INSIGHT_NETWORK='livenet' ./node_modules/pm2/bin/pm2 -f start insight.js --name insight-livenet &
|
||||
sleep 10;
|
||||
NODE_ENV='production' INSIGHT_NETWORK='testnet' ./node_modules/pm2/bin/pm2 -f start insight.js --name insight-testnet &
|
||||
|
Loading…
Reference in New Issue