From 27c18f5bdd83cb6d46f5c74fe2c6932336d2f780 Mon Sep 17 00:00:00 2001 From: Carlos Freund Date: Sat, 17 May 2025 16:40:46 +0200 Subject: [PATCH] build(makefile) Develop in OpenhandsCloud (#7440) Co-authored-by: openhands Co-authored-by: Boxuan Li Co-authored-by: Engel Nyst --- Makefile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 87f502c357..705606f9dc 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,7 @@ SHELL=/usr/bin/env bash BACKEND_HOST ?= "127.0.0.1" BACKEND_PORT = 3000 BACKEND_HOST_PORT = "$(BACKEND_HOST):$(BACKEND_PORT)" +FRONTEND_HOST ?= "127.0.0.1" FRONTEND_PORT = 3001 DEFAULT_WORKSPACE_DIR = "./workspace" DEFAULT_MODEL = "gpt-4o" @@ -288,6 +289,15 @@ setup-config-prompts: @read -p "Enter your LLM base URL [mostly used for local LLMs, leave blank if not needed - example: http://localhost:5001/v1/]: " llm_base_url; \ if [[ ! -z "$$llm_base_url" ]]; then echo "base_url=\"$$llm_base_url\"" >> $(CONFIG_FILE).tmp; fi +setup-config-basic: + @printf '%s\n' \ + '[core]' \ + 'workspace_base="./workspace"' \ + > config.toml + @echo "$(GREEN)config.toml created.$(RESET)" + +openhands-cloud-run: + @$(MAKE) run BACKEND_HOST="0.0.0.0" BACKEND_PORT="12000" FRONTEND_HOST="0.0.0.0" FRONTEND_PORT="12001" # Develop in container docker-dev: @@ -322,5 +332,4 @@ help: @echo " $(GREEN)help$(RESET) - Display this help message, providing information on available targets." # Phony targets -.PHONY: build check-dependencies check-python check-npm check-docker check-poetry install-python-dependencies install-frontend-dependencies install-pre-commit-hooks lint start-backend start-frontend run run-wsl setup-config setup-config-prompts help -.PHONY: docker-dev docker-run +.PHONY: build check-dependencies check-system check-python check-npm check-nodejs check-docker check-poetry install-python-dependencies install-frontend-dependencies install-pre-commit-hooks lint-backend lint-frontend lint test-frontend test build-frontend start-backend start-frontend _run_setup run run-wsl setup-config setup-config-prompts setup-config-basic openhands-cloud-run docker-dev docker-run clean help