mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-07 13:43:06 -04:00
weather v2 p3
This commit is contained in:
parent
97152e238f
commit
1ffa186256
3 changed files with 20 additions and 10 deletions
11
index.js
11
index.js
|
@ -38,10 +38,11 @@ const manager = new ClusterManager(client, token, {
|
|||
await manager.run();
|
||||
console.log(`v2 | ready. took ${(Date.now() - time) / 1000}.`)
|
||||
|
||||
let liveDeploy = await superagent.get(`${process.env.PB_MANAGER_HOST}_pbs/GetPbServiceId`)
|
||||
if(process.env.environment == "prodnew" && process.env.HOSTNAME !== liveDeploy.body.d){
|
||||
console.log(`[${process.env.HOSTNAME}] invalid deployment session`)
|
||||
process.exit();
|
||||
if(process.env.environment == "prodnew"){
|
||||
let liveDeploy = await superagent.get(`${process.env.PB_MANAGER_HOST}_pbs/GetPbServiceId`)
|
||||
if(process.env.HOSTNAME !== liveDeploy.body.d){
|
||||
console.log(`[${process.env.HOSTNAME}] invalid deployment session`)
|
||||
process.exit();
|
||||
}
|
||||
}
|
||||
|
||||
})();
|
Loading…
Add table
Add a link
Reference in a new issue