mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 22:53:06 -04:00
only run session check on prodnew
This commit is contained in:
parent
3caf2327be
commit
d0236b1911
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -39,7 +39,7 @@ const manager = new ClusterManager(client, token, {
|
|||
console.log(`v2 | ready. took ${(Date.now() - time) / 1000}.`)
|
||||
|
||||
let liveDeploy = await superagent.get(`${process.env.PB_MANAGER_HOST}_pbs/GetPbServiceId`)
|
||||
if(process.env.HOSTNAME !== liveDeploy.body.d){
|
||||
if(process.env.environment == "prodnew" && 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