Local Dev Server Control
Use this skill to manage the current repository's local development server without touching unrelated Node.js processes.
Run commands from repository root:
E:\coding\TermLink
Quick Start
Check current status:
powershell -ExecutionPolicy Bypass -File .\skills\local-dev-server-control\scripts\manage-local-dev-server.ps1 -Action status
Start server:
powershell -ExecutionPolicy Bypass -File .\skills\local-dev-server-control\scripts\manage-local-dev-server.ps1 -Action start
Stop server:
powershell -ExecutionPolicy Bypass -File .\skills\local-dev-server-control\scripts\manage-local-dev-server.ps1 -Action stop
Restart server:
powershell -ExecutionPolicy Bypass -File .\skills\local-dev-server-control\scripts\manage-local-dev-server.ps1 -Action restart
Behavior
- Manage only the repo-local development chain:
cmd -> npm run dev -> nodemon -> node src/server.js. - Default to
http://127.0.0.1:3010and setPORT=3010when starting. - Write combined startup logs to
logs/dev-server.log. - Probe
/api/healthafter startup and treat401 Unauthorizedas a valid sign that the server is up with auth enabled. - Fall back to
.envcredentials when present, otherwise useadmin/adminfor authenticated health checks.
Optional Parameters
powershell -ExecutionPolicy Bypass -File .\skills\local-dev-server-control\scripts\manage-local-dev-server.ps1 `
-Action restart `
-BaseUrl http://127.0.0.1:3010 `
-StartupTimeoutSec 30
Rules
- Do not use this skill for pm2 service management; use
win-server-deployfor Windows service operations. - Do not kill unrelated
node.exeprocesses outside this repository. - Prefer
-Action restartover ad hoc process killing when the request is simply to reload the local dev environment.