fix(identity-service): 移除 db push 回退,只用 migrate deploy
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
613d822c46
commit
6e53a4a572
|
|
@ -56,7 +56,7 @@ COPY --from=builder /app/dist ./dist
|
||||||
RUN echo '#!/bin/sh\n\
|
RUN echo '#!/bin/sh\n\
|
||||||
set -e\n\
|
set -e\n\
|
||||||
echo "Running database migrations..."\n\
|
echo "Running database migrations..."\n\
|
||||||
npx prisma migrate deploy || npx prisma db push --accept-data-loss\n\
|
npx prisma migrate deploy\n\
|
||||||
echo "Starting application..."\n\
|
echo "Starting application..."\n\
|
||||||
exec node dist/src/main.js\n' > /app/start.sh && chmod +x /app/start.sh
|
exec node dist/src/main.js\n' > /app/start.sh && chmod +x /app/start.sh
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue