Skip to content

Commit

Permalink
fix: let make run output both backend and frontend (All-Hands-AI#576)
Browse files Browse the repository at this point in the history
* fix: let make run output both backend and frontend

* fix: delete pipe on run
  • Loading branch information
xcodebuild authored Apr 2, 2024
1 parent 5e87c79 commit d64383a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,12 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*

logs

# agent
.envrc
/workspace
/debug

# configuration
config.toml
config.toml
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d64383a

Please sign in to comment.