Fix make vars (#641)

* fix: let BACKEND_HOST and FRONTEND_PORT works in markfile

* feat: let vite do not clear terminal to keep backend log
This commit is contained in:
xcodebuild
2024-04-03 20:58:01 +08:00
committed by GitHub
parent 08a2dfb01a
commit 1c6f046c84
4 changed files with 434 additions and 13341 deletions

View File

@@ -3,6 +3,7 @@
# Variables
DOCKER_IMAGE = ghcr.io/opendevin/sandbox
BACKEND_PORT = 3000
BACKEND_HOST = "127.0.0.1:$(BACKEND_PORT)"
FRONTEND_PORT = 3001
DEFAULT_WORKSPACE_DIR = "./workspace"
DEFAULT_MODEL = "gpt-4-0125-preview"
@@ -27,7 +28,7 @@ start-backend:
# Start frontend
start-frontend:
@echo "Starting frontend..."
@cd frontend && npm run start -- --port $(FRONTEND_PORT)
@cd frontend && BACKEND_HOST=$(BACKEND_HOST) FRONTEND_PORT=$(FRONTEND_PORT) npm run start
# Run the app
run: