chore(dev): add cleanup flow to force_run in Makefile (#13093)
## Summary Improve local dev restart reliability by enhancing `make force_run` to run cleanup before starting Overmind. ## How To Reproduce During local development, if `make run` is interrupted (for example with Ctrl-C), stale state can remain (`.overmind.sock`, PID files, and processes on ports `3000`/`3036`), which can block or complicate the next restart. ## Changes Updated `force_run` in `Makefile` to: - print cleanup start/end messages - kill processes on ports `3036` and `3000` (best-effort) - remove `.overmind.sock` - remove `tmp/pids/*.pid` - then start `Procfile.dev` via Overmind No other files are changed in this PR. ## Testing - Verified branch diff against `develop` only touches `Makefile`. - Ran `make -n force_run` to validate the command sequence and startup flow. --------- Co-authored-by: Sojan Jose <sojan@pepalo.com>
This commit is contained in:
8
Makefile
8
Makefile
@@ -40,8 +40,12 @@ run:
|
||||
fi
|
||||
|
||||
force_run:
|
||||
rm -f ./.overmind.sock
|
||||
rm -f tmp/pids/*.pid
|
||||
@echo "Cleaning up Overmind processes..."
|
||||
@lsof -ti:3036 2>/dev/null | xargs kill -9 2>/dev/null || true
|
||||
@lsof -ti:3000 2>/dev/null | xargs kill -9 2>/dev/null || true
|
||||
@rm -f ./.overmind.sock
|
||||
@rm -f tmp/pids/*.pid
|
||||
@echo "Cleanup complete"
|
||||
overmind start -f Procfile.dev
|
||||
|
||||
force_run_tunnel:
|
||||
|
||||
Reference in New Issue
Block a user