1
0
Fork 0
mirror of synced 2024-09-29 16:51:33 +13:00

Quick fix for self hosting error in logs.

This commit is contained in:
mike12345567 2021-02-05 15:24:34 +00:00
parent 4b2b375512
commit 0f7e682b99

View file

@ -53,7 +53,8 @@ server.on("close", () => console.log("Server Closed"))
module.exports = server.listen(env.PORT || 4001, async () => {
console.log(`Budibase running on ${JSON.stringify(server.address())}`)
automations.init()
if (env.SELF_HOSTED) {
// only init the self hosting DB info in the Pouch, not needed in self hosting prod
if (!env.CLOUD) {
await selfhost.init()
}
})