From 918182cd87b54488b35d83af5c7322149f7cfa1d Mon Sep 17 00:00:00 2001 From: Sarah Vaupel Date: Sun, 13 Oct 2024 01:52:12 +0200 Subject: [PATCH] build(backend): fix backend start.sh --- start.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/start.sh b/start.sh index 528a39c49..dd8f257ad 100755 --- a/start.sh +++ b/start.sh @@ -36,12 +36,9 @@ unset HOST # trap move-back EXIT # fi -if ! [ -z "$(which yesod)" ] +if ! [ -z "$(which stack)" ] then - yesod devel --work-dir .stack-work-run -p "$DEV_PORT_HTTP" -q "$DEV_PORT_HTTPS" $@ -elif ! [ -z "$(which stack)" ] -then - stack exec -- yesod devel --work-dir .stack-work-run -p "$DEV_PORT_HTTP" -q "$DEV_PORT_HTTPS" $@ + stack --work-dir .stack-work-run exec -- yesod devel -p "$DEV_PORT_HTTP" -q "$DEV_PORT_HTTPS" $@ else exit 1 fi