diff --git a/backend/.env.example b/backend/.env.example index e51ecda..95044ba 100644 --- a/backend/.env.example +++ b/backend/.env.example @@ -6,7 +6,10 @@ TELEGRAM_BOT_TOKEN=your-telegram-bot-token TELEGRAM_CHAT_ID=your-chat-id # ─── OpenClaw ────────────────────────────────────────────── -OPENCLAW_WORKSPACE=/home/foxy/.openclaw/workspace +# Path on the HOST (where openclaw workspace is stored) +OPENCLAW_WORKSPACE=/home/openclaw/.openclaw/workspace +# Path in the CONTAINER (keep as is) +FOXY_WORKSPACE=/home/foxy/.openclaw/workspace # ─── Gitea ───────────────────────────────────────────────── GITEA_SERVER=https://gitea.your.server diff --git a/backend/app/config.py b/backend/app/config.py index 8ea7929..65c2b9c 100644 --- a/backend/app/config.py +++ b/backend/app/config.py @@ -16,7 +16,7 @@ class Settings(BaseSettings): TELEGRAM_CHAT_ID: str = "" # OpenClaw - OPENCLAW_WORKSPACE: str = "/home/foxy/.openclaw/workspace" + FOXY_WORKSPACE: str = "/home/foxy/.openclaw/workspace" # Gitea GITEA_SERVER: str = "" diff --git a/backend/app/openclaw.py b/backend/app/openclaw.py index dbd4b0b..9eb028d 100644 --- a/backend/app/openclaw.py +++ b/backend/app/openclaw.py @@ -128,7 +128,7 @@ async def spawn_agent( *cmd, stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE, - cwd=settings.OPENCLAW_WORKSPACE, + cwd=settings.FOXY_WORKSPACE, ) # Wait briefly to check for immediate failure diff --git a/docker-compose.yml b/docker-compose.yml index e1683a5..7b44c48 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -24,7 +24,7 @@ services: - backend/.env volumes: - foxy-data:/app/data - - foxy-workspace:/home/foxy/.openclaw/workspace + - "${OPENCLAW_WORKSPACE}:${FOXY_WORKSPACE}" healthcheck: test: ["CMD", "curl", "-f", "http://localhost:7000/api/health"] interval: 30s @@ -60,8 +60,6 @@ services: volumes: foxy-data: driver: local - foxy-workspace: - driver: local networks: foxy-net: diff --git a/frontend/src/api/client.ts b/frontend/src/api/client.ts index 3d84fbb..a53dcb2 100644 --- a/frontend/src/api/client.ts +++ b/frontend/src/api/client.ts @@ -136,7 +136,7 @@ export interface GitServer { } export interface AppConfig { - OPENCLAW_WORKSPACE: string; + FOXY_WORKSPACE: string; GITEA_SERVER: string; DEPLOYMENT_SERVER: string; DEPLOYMENT_USER: string;