Skip to content

Commit

Permalink
Exit ffs startup script if migrations fail (open-telemetry#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshleecreates authored Oct 6, 2022
1 parent 3d240bf commit d15d734
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 d15d734

Please sign in to comment.