Skip to content

Commit d64383a

Browse files
authored
fix: let make run output both backend and frontend (OpenHands#576)
* fix: let make run output both backend and frontend * fix: delete pipe on run
1 parent 5e87c79 commit d64383a

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,12 @@ npm-debug.log*
191191
yarn-debug.log*
192192
yarn-error.log*
193193

194+
logs
195+
194196
# agent
195197
.envrc
196198
/workspace
197199
/debug
198200

199201
# configuration
200-
config.toml
202+
config.toml

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ start-frontend:
3131
# Run the app
3232
run:
3333
@echo "Running the app..."
34-
@mkdir -p logs
35-
@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 &
36-
@cd frontend && npm run start -- --port $(FRONTEND_PORT)
34+
@rm logs/pipe
35+
@mkfifo logs/pipe
36+
@cat logs/pipe | (make start-backend) &
37+
@echo 'test' | tee logs/pipe | (make start-frontend)
3738

3839
# Setup config.toml
3940
setup-config:

0 commit comments

Comments
 (0)