From 3abe32a2c7dc1ac4bfe92850a1317f743be190d0 Mon Sep 17 00:00:00 2001 From: Vinay Keerthi <11478411+stonecharioteer@users.noreply.github.com> Date: Thu, 5 Mar 2026 07:26:55 +0530 Subject: [PATCH] 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 --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 552ebe659..684adacc6 100644 --- a/Makefile +++ b/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: