Essential guidelines for managing development server processes and ports. Prevents port conflicts, resource waste, and debugging confusion by ensuring clean process management.
Before starting any dev server, always check for and kill existing processes on the target port Never run multiple dev servers for the same project simultaneously - kill old ones before starting new ones Use lsof -ti:[PORT] | xargs kill -9 to clean up ports before starting servers Minimize background processes - only keep necessary dev servers running (one per active project) When debugging, restart the existing server rather than spawning additional ones If starting a new background process, verify no duplicate processes exist first
Before starting any dev server, always check for and kill existing processes on the target port Never run multiple dev servers for the same project simultaneously - kill old ones before starting new ones Use lsof -ti:[PORT] | xargs kill -9 to clean up ports before starting servers Minimize background processes - only keep necessary dev servers running (one per active project) When debugging, restart the existing server rather than spawning additional ones If starting a new background process, verify no duplicate processes exist first
This prompt is released under CC0 (Public Domain). You are free to use it for any purpose without attribution.