mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
fix: let make run output both backend and frontend (#576)
* fix: let make run output both backend and frontend * fix: delete pipe on run
This commit is contained in:
parent
5e87c79838
commit
d64383a520
4
.gitignore
vendored
4
.gitignore
vendored
@ -191,10 +191,12 @@ npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
|
||||
logs
|
||||
|
||||
# agent
|
||||
.envrc
|
||||
/workspace
|
||||
/debug
|
||||
|
||||
# configuration
|
||||
config.toml
|
||||
config.toml
|
||||
|
||||
7
Makefile
7
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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user