service should work
parent
489d16076a
commit
083f4e29d9
|
|
@ -12,6 +12,7 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"name-server": "supervisor -w name-server,lib -n exit name-server/index.js",
|
"name-server": "supervisor -w name-server,lib -n exit name-server/index.js",
|
||||||
"relay": "supervisor -w relay,lib -n exit relay/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: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"
|
"client:b": "supervisor -w client,lib -n exit -- client/index.js --profile LsE8OnVzr1iYrkT0"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,9 @@ function update() {
|
||||||
if(remoteHash !== localHash) {
|
if(remoteHash !== localHash) {
|
||||||
log.info('remote hash:', remoteHash);
|
log.info('remote hash:', remoteHash);
|
||||||
log.info('local hash: ', localHash);
|
log.info('local hash: ', localHash);
|
||||||
|
|
||||||
|
execSync(`git fetch`, { stdio: "inherit" });
|
||||||
|
execSync(`git pull`, { stdio: "inherit" });
|
||||||
process.exit(2);
|
process.exit(2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -16,7 +19,7 @@ function update() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
require('./index.js');
|
// require('./index.js');
|
||||||
|
|
||||||
setInterval(update, 5000);
|
setInterval(update, 5000);
|
||||||
|
|
||||||
|
|
|
||||||
Reference in New Issue