Fixing test case.
This commit is contained in:
parent
28e47a5fa8
commit
05af8cafc2
|
@ -15,7 +15,7 @@ ENV SELF_HOSTED=1
|
||||||
ENV CLUSTER_PORT=10000
|
ENV CLUSTER_PORT=10000
|
||||||
ENV REDIS_PASSWORD=budibase
|
ENV REDIS_PASSWORD=budibase
|
||||||
ENV ARCHITECTURE=amd
|
ENV ARCHITECTURE=amd
|
||||||
ENV SERVER_PORT=4001
|
ENV APP_PORT=4001
|
||||||
ENV WORKER_PORT=4002
|
ENV WORKER_PORT=4002
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
|
|
|
@ -76,7 +76,7 @@ server.on("close", async () => {
|
||||||
await redis.shutdown()
|
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())}`)
|
console.log(`Budibase running on ${JSON.stringify(server.address())}`)
|
||||||
env._set("PORT", server.address().port)
|
env._set("PORT", server.address().port)
|
||||||
eventEmitter.emitPort(env.PORT)
|
eventEmitter.emitPort(env.PORT)
|
||||||
|
|
Loading…
Reference in New Issue