mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 19:01:08 +02:00
fix(nutriphi): add shared-drizzle-config and make db:push non-fatal
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
b6925e0b63
commit
ad22d264aa
2 changed files with 7 additions and 3 deletions
|
|
@ -16,6 +16,7 @@ COPY packages/shared-tsconfig ./packages/shared-tsconfig
|
|||
COPY packages/shared-nestjs-auth ./packages/shared-nestjs-auth
|
||||
COPY packages/shared-nestjs-setup ./packages/shared-nestjs-setup
|
||||
COPY packages/shared-nestjs-health ./packages/shared-nestjs-health
|
||||
COPY packages/shared-drizzle-config ./packages/shared-drizzle-config
|
||||
|
||||
# Copy nutriphi packages and backend
|
||||
COPY apps/nutriphi/packages ./apps/nutriphi/packages
|
||||
|
|
|
|||
|
|
@ -13,10 +13,13 @@ echo "PostgreSQL is up!"
|
|||
|
||||
cd /app/apps/nutriphi/apps/backend
|
||||
|
||||
# Run schema push
|
||||
# Run schema push (non-fatal - app can still start if this fails)
|
||||
echo "Pushing database schema..."
|
||||
npx drizzle-kit push --force
|
||||
echo "Schema push completed!"
|
||||
if npx drizzle-kit push --force; then
|
||||
echo "Schema push completed!"
|
||||
else
|
||||
echo "Warning: Schema push failed, continuing anyway..."
|
||||
fi
|
||||
|
||||
# Execute the main command
|
||||
echo "Starting application..."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue