Fix staging health-check hang: revert seed-at-boot
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
"title": "Community Rule",
|
"title": "Community Rule",
|
||||||
"author": "MEDLab",
|
"author": "MEDLab",
|
||||||
"description": "Community governance and rule-building app",
|
"description": "Community governance and rule-building app",
|
||||||
"version": "0.1.4",
|
"version": "0.1.5",
|
||||||
"httpPort": 3000,
|
"httpPort": 3000,
|
||||||
"healthCheckPath": "/api/health",
|
"healthCheckPath": "/api/health",
|
||||||
"memoryLimit": 805306368,
|
"memoryLimit": 805306368,
|
||||||
|
|||||||
@@ -48,7 +48,6 @@ COPY --from=builder --chown=node:node /app/public ./public
|
|||||||
COPY --from=builder --chown=node:node /app/.next/standalone ./
|
COPY --from=builder --chown=node:node /app/.next/standalone ./
|
||||||
COPY --from=builder --chown=node:node /app/.next/static ./.next/static
|
COPY --from=builder --chown=node:node /app/.next/static ./.next/static
|
||||||
COPY --from=builder --chown=node:node /app/prisma ./prisma
|
COPY --from=builder --chown=node:node /app/prisma ./prisma
|
||||||
COPY --from=builder --chown=node:node /app/data ./data
|
|
||||||
|
|
||||||
# Prisma CLI (devDependency) is not in the Next.js standalone trace. Install
|
# Prisma CLI (devDependency) is not in the Next.js standalone trace. Install
|
||||||
# globally in the runner so start.sh can run `prisma migrate deploy`.
|
# globally in the runner so start.sh can run `prisma migrate deploy`.
|
||||||
|
|||||||
+1
-1
@@ -21,4 +21,4 @@ chown -R node:node /tmp/next-cache
|
|||||||
# Drop privileges, apply any pending migrations, then exec the server.
|
# Drop privileges, apply any pending migrations, then exec the server.
|
||||||
# Inner `exec` ensures SIGTERM from Cloudron reaches node for clean shutdown.
|
# Inner `exec` ensures SIGTERM from Cloudron reaches node for clean shutdown.
|
||||||
exec gosu node:node sh -c \
|
exec gosu node:node sh -c \
|
||||||
'prisma migrate deploy && node prisma/seed.bundle.cjs && exec node server.js'
|
'prisma migrate deploy && exec node server.js'
|
||||||
|
|||||||
Reference in New Issue
Block a user