service should work

stable
Marcus 2020-11-11 21:42:23 -05:00
parent 489d16076a
commit 083f4e29d9
2 changed files with 5 additions and 1 deletions

View File

@ -12,6 +12,7 @@
"scripts": {
"name-server": "supervisor -w name-server,lib -n exit name-server/index.js",
"relay": "supervisor -w relay,lib -n exit relay/index.js",
"relay:service": "supervisor -- relay/service",
"client:a": "supervisor -w client,lib -n exit -- client/index.js --profile J2aV59rsIgcdd5k2",
"client:b": "supervisor -w client,lib -n exit -- client/index.js --profile LsE8OnVzr1iYrkT0"
},

View File

@ -9,6 +9,9 @@ function update() {
if(remoteHash !== localHash) {
log.info('remote hash:', remoteHash);
log.info('local hash: ', localHash);
execSync(`git fetch`, { stdio: "inherit" });
execSync(`git pull`, { stdio: "inherit" });
process.exit(2);
}
}
@ -16,7 +19,7 @@ function update() {
require('./index.js');
// require('./index.js');
setInterval(update, 5000);