mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-01-29 22:02:02 +00:00
fix: use shared data directory for Electron and web modes
CRITICAL FIX: Electron and web mode were using DIFFERENT data directories: - Electron: Docker volume 'automaker-data' (isolated from host) - Web: Local ./data directory (host filesystem) This caused projects opened in Electron to never appear in web mode because they were synced to a completely separate Docker volume. Solution: Mount the host's ./data directory into both containers This ensures Electron and web mode always share the same data directory and all projects are immediately visible across modes. Now when you: 1. Open projects in Electron → synced to ./data 2. Switch to web mode → loads from same ./data 3. Restart server → both see the same projects Fixes issue where projects opened in Electron don't appear in web mode. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -59,8 +59,10 @@ services:
|
||||
# This ensures native modules are built for the container's architecture
|
||||
- automaker-dev-node-modules:/app/node_modules
|
||||
|
||||
# Persist data across restarts
|
||||
- automaker-data:/data
|
||||
# IMPORTANT: Mount local ./data directory (not a Docker volume)
|
||||
# This ensures Electron and web mode share the same data directory
|
||||
# and projects opened in either mode are visible in both
|
||||
- ./data:/data
|
||||
|
||||
# Persist CLI configurations
|
||||
- automaker-claude-config:/home/automaker/.claude
|
||||
@@ -97,9 +99,6 @@ volumes:
|
||||
name: automaker-dev-node-modules
|
||||
# Named volume for container-specific node_modules
|
||||
|
||||
automaker-data:
|
||||
name: automaker-data
|
||||
|
||||
automaker-claude-config:
|
||||
name: automaker-claude-config
|
||||
|
||||
|
||||
@@ -60,8 +60,9 @@ services:
|
||||
# This ensures native modules are built for the container's architecture
|
||||
- automaker-dev-node-modules:/app/node_modules
|
||||
|
||||
# Persist data across restarts
|
||||
- automaker-data:/data
|
||||
# IMPORTANT: Mount local ./data directory (not a Docker volume)
|
||||
# This ensures data is consistent across Electron and web modes
|
||||
- ./data:/data
|
||||
|
||||
# Persist CLI configurations
|
||||
- automaker-claude-config:/home/automaker/.claude
|
||||
@@ -141,9 +142,6 @@ volumes:
|
||||
name: automaker-dev-node-modules
|
||||
# Named volume for container-specific node_modules
|
||||
|
||||
automaker-data:
|
||||
name: automaker-data
|
||||
|
||||
automaker-claude-config:
|
||||
name: automaker-claude-config
|
||||
|
||||
|
||||
Reference in New Issue
Block a user