Some checks failed
Deploy to NAS / deploy (push) Failing after 4s
Remove submodule tracking; backend is now a plain directory in the repo. Also update deploy workflow: remove --recurse-submodules. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
13 lines
217 B
Bash
Executable File
13 lines
217 B
Bash
Executable File
#!/bin/bash
|
|
PORT="${LISTEN_ADDR:-:8081}"
|
|
PORT="${PORT#:}"
|
|
|
|
PID=$(lsof -ti:$PORT)
|
|
if [ -z "$PID" ]; then
|
|
echo "Server is not running on port $PORT"
|
|
exit 0
|
|
fi
|
|
|
|
kill $PID
|
|
echo "Server stopped (port $PORT, pid $PID)"
|