Skip to content

πŸ™Œ OpenHands: AI-Driven Development

Make backend and frontend ports configurable in Makefile (#9722)

Carlos Freund844b00a38058
diff --git a/Makefile b/Makefile
index 7bb12e417a..1493ab332b 100644
--- a/Makefile
+++ b/Makefile
@@ -3,10 +3,10 @@ SHELL=/usr/bin/env bash
# Variables
BACKEND_HOST ?= "127.0.0.1"
-BACKEND_PORT = 3000
+BACKEND_PORT ?= 3000
BACKEND_HOST_PORT = "$(BACKEND_HOST):$(BACKEND_PORT)"
FRONTEND_HOST ?= "127.0.0.1"
-FRONTEND_PORT = 3001
+FRONTEND_PORT ?= 3001
DEFAULT_WORKSPACE_DIR = "./workspace"
DEFAULT_MODEL = "gpt-4o"
CONFIG_FILE = config.toml