Skip to content

Commit

Permalink
👷 build: make database docker image exit if migration fail (lobehub#3541
Browse files Browse the repository at this point in the history
)

* 👷 build: detect migration exit code

* 👷 build: fix ci issue
  • Loading branch information
hezhijie0327 authored Aug 22, 2024
1 parent 53a3089 commit b0474ef
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile.database
Original file line number Diff line number Diff line change
Expand Up @@ -218,5 +218,7 @@ CMD \
fi; \
# Run migration
node "/app/docker.cjs"; \
# Run the server
${PROXYCHAINS} node "/app/server.js";
if [ "$?" -eq "0" ]; then \
# Run the server
${PROXYCHAINS} node "/app/server.js"; \
fi;

0 comments on commit b0474ef

Please sign in to comment.