Skip to content

Commit

Permalink
Exit ffs startup script if migrations fail
Browse files Browse the repository at this point in the history
  • Loading branch information
joshleecreates committed Oct 6, 2022
1 parent f6ae2d7 commit 7018dc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/featureflagservice/rel/overlays/bin/server
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
cd -P -- "$(dirname -- "$0")"

./featureflagservice eval Featureflagservice.Release.migrate
./featureflagservice eval Featureflagservice.Release.migrate || { echo "Database setup or migrations failed."; exit 1; }

PHX_SERVER=true exec ./featureflagservice start

0 comments on commit 7018dc7

Please sign in to comment.