Bail out if server startup fails.

This commit is contained in:
Sam Rose 2024-02-16 15:13:26 +00:00
parent 89557d5407
commit 30abf188a3
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View File

@ -38,7 +38,7 @@ COPY packages/worker/pm2.config.js packages/worker/pm2.config.js
COPY packages/string-templates packages/string-templates COPY packages/string-templates packages/string-templates
FROM budicouch as runner FROM budibase/couchdb as runner
ARG TARGETARCH ARG TARGETARCH
ENV TARGETARCH $TARGETARCH ENV TARGETARCH $TARGETARCH
#TARGETBUILD can be set to single (for single docker image) or aas (for azure app service) #TARGETBUILD can be set to single (for single docker image) or aas (for azure app service)

View File

@ -26,6 +26,7 @@ async function start() {
start().catch(err => { start().catch(err => {
console.error(`Failed server startup - ${err.message}`) console.error(`Failed server startup - ${err.message}`)
throw err
}) })
export function getServer() { export function getServer() {