Skip to content

Commit

Permalink
fix: ensure migration command exits on failure in startup script (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
fadhilyori authored Feb 24, 2025
1 parent 36697b4 commit 848ab3b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions startup.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/sh
php artisan migrate --force
exec /usr/bin/supervisord -c /etc/supervisord.conf


php artisan migrate --force || exit $?

exec /usr/bin/supervisord -c /etc/supervisord.conf

0 comments on commit 848ab3b

Please sign in to comment.