From 01a1484e439b55259e5a607532e7119d4ecd788e Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Fri, 27 Oct 2023 16:28:44 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(Makefile):=20kill=20existing?= =?UTF-8?q?=20process=20running=20on=20port=203000=20before=20starting=20f?= =?UTF-8?q?rontend=20to=20prevent=20conflicts=20=F0=9F=90=9B=20fix(Makefil?= =?UTF-8?q?e):=20kill=20existing=20process=20running=20on=20port=207860=20?= =?UTF-8?q?before=20starting=20backend=20to=20prevent=20conflicts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index af1765feb..233d0a4c4 100644 --- a/Makefile +++ b/Makefile @@ -46,6 +46,7 @@ install_frontendc: cd src/frontend && rm -rf node_modules package-lock.json && npm install run_frontend: + @-kill -9 `lsof -t -i:3000` cd src/frontend && npm start run_cli: @@ -72,6 +73,7 @@ install_backend: backend: make install_backend + @-kill -9 `lsof -t -i:7860` ifeq ($(login),1) @echo "Running backend without autologin"; poetry run langflow run --backend-only --port 7860 --host 0.0.0.0 --no-open-browser --env-file .env