integrating PM2 process manager for run livenet and testnet simultaneously

This commit is contained in:
Gustavo Cortez 2014-02-11 17:09:24 -03:00
parent ecf28e085a
commit c18d05f50c
2 changed files with 7 additions and 1 deletions

View File

@ -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",

5
start.sh Executable file
View File

@ -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 &