hotreload: don't die on build errors

This commit is contained in:
ekzyis 2023-09-09 22:52:51 +02:00
parent e5f5759871
commit b8a759b141
1 changed files with 2 additions and 0 deletions

View File

@ -5,8 +5,10 @@ PID=$(pidof delphi.market)
set -e
function restart_server() {
set +e
[[ -z "$PID" ]] || kill -15 $PID
ENV=development make build -B
set -e
./delphi.market >> server.log 2>&1 &
PID=$(pidof delphi.market)
}