From 7e68946c0321403dd733e6469bc4c940de747c16 Mon Sep 17 00:00:00 2001 From: Josh Lee Date: Thu, 6 Oct 2022 14:57:45 -0400 Subject: [PATCH] Exit ffs startup script if migrations fail (#402) --- src/featureflagservice/rel/overlays/bin/server | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/featureflagservice/rel/overlays/bin/server b/src/featureflagservice/rel/overlays/bin/server index b988a12e0d..b4a5b70cf0 100755 --- a/src/featureflagservice/rel/overlays/bin/server +++ b/src/featureflagservice/rel/overlays/bin/server @@ -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