1
0
Fork 0
mirror of synced 2024-06-02 02:25:17 +12:00

Fixing test case.

This commit is contained in:
mike12345567 2022-04-01 13:47:38 +01:00
parent 12be8ed357
commit 67beee7d93
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ ENV SELF_HOSTED=1
ENV CLUSTER_PORT=10000
ENV REDIS_PASSWORD=budibase
ENV ARCHITECTURE=amd
ENV SERVER_PORT=4001
ENV APP_PORT=4001
ENV WORKER_PORT=4002
RUN apt-get update

View file

@ -76,7 +76,7 @@ server.on("close", async () => {
await redis.shutdown()
})
module.exports = server.listen(env.PORT || 4001, async () => {
module.exports = server.listen(env.PORT || 0, async () => {
console.log(`Budibase running on ${JSON.stringify(server.address())}`)
env._set("PORT", server.address().port)
eventEmitter.emitPort(env.PORT)