diff --git a/hotreload.sh b/hotreload.sh index fc91389..993db97 100644 --- a/hotreload.sh +++ b/hotreload.sh @@ -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) }