Update startup.ts to use simpler flag check

This commit is contained in:
kellis5137 2023-11-02 11:29:30 -04:00 committed by GitHub
parent 6bdf04fad5
commit 5f585a426d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ export async function startup(app?: any, server?: any) {
return return
} }
STARTUP_RAN = true STARTUP_RAN = true
if (server && env.CLUSTER_MODE?.toLowerCase() !== "true") { if (server && !env.CLUSTER_MODE) {
console.log(`Budibase running on ${JSON.stringify(server.address())}`) console.log(`Budibase running on ${JSON.stringify(server.address())}`)
env._set("PORT", server.address().port) env._set("PORT", server.address().port)
} }