🐛 fix(Makefile): kill existing process running on port 3000 before starting frontend to prevent conflicts
🐛 fix(Makefile): kill existing process running on port 7860 before starting backend to prevent conflicts
This commit is contained in:
parent
7b946cef70
commit
01a1484e43
1 changed files with 2 additions and 0 deletions
2
Makefile
2
Makefile
|
|
@ -46,6 +46,7 @@ install_frontendc:
|
||||||
cd src/frontend && rm -rf node_modules package-lock.json && npm install
|
cd src/frontend && rm -rf node_modules package-lock.json && npm install
|
||||||
|
|
||||||
run_frontend:
|
run_frontend:
|
||||||
|
@-kill -9 `lsof -t -i:3000`
|
||||||
cd src/frontend && npm start
|
cd src/frontend && npm start
|
||||||
|
|
||||||
run_cli:
|
run_cli:
|
||||||
|
|
@ -72,6 +73,7 @@ install_backend:
|
||||||
|
|
||||||
backend:
|
backend:
|
||||||
make install_backend
|
make install_backend
|
||||||
|
@-kill -9 `lsof -t -i:7860`
|
||||||
ifeq ($(login),1)
|
ifeq ($(login),1)
|
||||||
@echo "Running backend without autologin";
|
@echo "Running backend without autologin";
|
||||||
poetry run langflow run --backend-only --port 7860 --host 0.0.0.0 --no-open-browser --env-file .env
|
poetry run langflow run --backend-only --port 7860 --host 0.0.0.0 --no-open-browser --env-file .env
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue