Browse Source

Quick fix for self hosting error in logs.

gh-pages
mike12345567 6 years ago
parent
commit
0f7e682b99
  1. 3
      packages/server/src/app.js

3
packages/server/src/app.js

@ -53,7 +53,8 @@ server.on("close", () => console.log("Server Closed"))
module.exports = server.listen(env.PORT || 4001, async () => { module.exports = server.listen(env.PORT || 4001, async () => {
console.log(`Budibase running on ${JSON.stringify(server.address())}`) console.log(`Budibase running on ${JSON.stringify(server.address())}`)
automations.init() 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() await selfhost.init()
} }
}) })

Loading…
Cancel
Save