From d64383a52061ed11fe10fe90dba23e0084c1fe46 Mon Sep 17 00:00:00 2001 From: xcodebuild Date: Tue, 2 Apr 2024 20:54:16 +0800 Subject: [PATCH] fix: let make run output both backend and frontend (#576) * fix: let make run output both backend and frontend * fix: delete pipe on run --- .gitignore | 4 +++- Makefile | 7 ++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index a7a7c70ea9dd..6e2e28707928 100644 --- a/.gitignore +++ b/.gitignore @@ -191,10 +191,12 @@ npm-debug.log* yarn-debug.log* yarn-error.log* +logs + # agent .envrc /workspace /debug # configuration -config.toml \ No newline at end of file +config.toml diff --git a/Makefile b/Makefile index ffa31e6bc951..1a4044d13c7c 100644 --- a/Makefile +++ b/Makefile @@ -31,9 +31,10 @@ start-frontend: # Run the app run: @echo "Running the app..." - @mkdir -p logs - @pipenv run nohup uvicorn opendevin.server.listen:app --port $(BACKEND_PORT) --host "::" > logs/backend_$(shell date +'%Y%m%d_%H%M%S').log 2>&1 & - @cd frontend && npm run start -- --port $(FRONTEND_PORT) + @rm logs/pipe + @mkfifo logs/pipe + @cat logs/pipe | (make start-backend) & + @echo 'test' | tee logs/pipe | (make start-frontend) # Setup config.toml setup-config: