mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
Update Makefile
This commit is contained in:
parent
834f3aa088
commit
8217739c31
12
Makefile
12
Makefile
@ -15,8 +15,8 @@ build:
|
||||
@echo "Pulling Docker image..."
|
||||
@docker pull $(DOCKER_IMAGE)
|
||||
@echo "Installing Python dependencies..."
|
||||
@python -m pip install pipenv
|
||||
@python -m pipenv install -v
|
||||
@pip install poetry
|
||||
@poetry install
|
||||
@echo "Setting up frontend environment..."
|
||||
@echo "Detect Node.js version..."
|
||||
@cd frontend && node ./scripts/detect-node-version.js
|
||||
@ -30,7 +30,7 @@ build:
|
||||
# Start backend
|
||||
start-backend:
|
||||
@echo "Starting backend..."
|
||||
@python -m pipenv run uvicorn opendevin.server.listen:app --port $(BACKEND_PORT)
|
||||
@poetry run uvicorn opendevin.server.listen:app --port $(BACKEND_PORT)
|
||||
|
||||
# Start frontend
|
||||
start-frontend:
|
||||
@ -45,10 +45,8 @@ run:
|
||||
exit 1; \
|
||||
fi
|
||||
@mkdir -p logs
|
||||
@rm -f logs/pipe
|
||||
@mkfifo logs/pipe
|
||||
@cat logs/pipe | (make start-backend) &
|
||||
@echo 'test' | tee logs/pipe | (make start-frontend)
|
||||
@poetry 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)
|
||||
|
||||
# Setup config.toml
|
||||
setup-config:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user