Skip to content

Commit 1759faf

Browse files
committed
[build] skip migration if custom commands passed
1 parent dd5342d commit 1759faf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/docker-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
set -e
66

77
# Execute DB migrations only when the main application is about to run
8-
if [ "${1:-}" = "/app/app" ]; then
8+
if [ $# -eq 1 ] && [ "${1:-}" = "/app/app" ]; then
99
/app/app db:migrate up
1010
fi
1111

1212
# Execute the main application
13-
exec "$@"
13+
exec "$@"

0 commit comments

Comments
 (0)