fix(makefile): use fuser port-kill instead of pkill pattern for restart
pkill -f matched the shell subprocess's own argv (which contains the pattern as a -c argument), causing make to receive SIGTERM and abort. fuser -k 8000/tcp / 3000/tcp targets only the process bound to the port — no self-kill risk. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -36,7 +36,7 @@ mcp-http:
|
|||||||
MCP_TRANSPORT=sse MCP_PORT=8001 uv run python mcp_server/server.py
|
MCP_TRANSPORT=sse MCP_PORT=8001 uv run python mcp_server/server.py
|
||||||
|
|
||||||
dashboard:
|
dashboard:
|
||||||
@pkill -f "observable preview" 2>/dev/null && echo "Stopped running dashboard" || true
|
@fuser -k 3000/tcp 2>/dev/null && echo "Stopped running dashboard" || true
|
||||||
cd dashboard && npm run dev
|
cd dashboard && npm run dev
|
||||||
|
|
||||||
check:
|
check:
|
||||||
@@ -115,7 +115,7 @@ backend: db
|
|||||||
sleep 1; \
|
sleep 1; \
|
||||||
done
|
done
|
||||||
$(MAKE) migrate
|
$(MAKE) migrate
|
||||||
@pkill -f "uvicorn api.main:app" 2>/dev/null && echo "Stopped running API" || true
|
@fuser -k 8000/tcp 2>/dev/null && echo "Stopped running API" || true
|
||||||
$(MAKE) api
|
$(MAKE) api
|
||||||
|
|
||||||
## Register a project: make register-project DOMAIN=railiance PROJECT_PATH=/home/worsch/railiance
|
## Register a project: make register-project DOMAIN=railiance PROJECT_PATH=/home/worsch/railiance
|
||||||
|
|||||||
Reference in New Issue
Block a user