From 62c4eb2f05c5d4207a2df019ac932ccba12e3723 Mon Sep 17 00:00:00 2001 From: "Samuel Hierholzer (Adfinis AG)" Date: Tue, 31 Oct 2023 20:15:34 +0100 Subject: [PATCH] feat: Make the run script exit when the migrations fail --- scripts/run.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/run.sh b/scripts/run.sh index 82426aa..9766ca4 100755 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -1,3 +1,5 @@ #!/bin/sh + +set -e prisma migrate deploy --schema=./src/lib/server/prisma/schema.prisma pm2-runtime process.yml