mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-21 02:33:32 +00:00
d6e61e73ec
- Fix update history using hardcoded /var/lib/pulse instead of configured data dir - Skip mock.env watching in Docker environments to avoid 'no such file' errors Fixes issue #529 Update History Path: - Modified NewUpdateHandlers to accept dataDir parameter - Pass r.config.DataPath from router (honors PULSE_DATA_DIR=/data in Docker) - Maintains backward compatibility with default /var/lib/pulse when empty Mock Env Watcher: - Check PULSE_DOCKER env var and skip mock.env watching if true - Only watch /opt/pulse/mock.env if directory exists (not in containers) - Guard all mock.env operations to prevent errors when path is empty - Clean up log messages to only show mock_env_path when actually watching
Internal API Package
This directory contains the API server implementation for Pulse.
Important Note About frontend-modern/
The frontend-modern/ subdirectory that appears here is:
- AUTO-GENERATED during builds
- NOT the source code - just a build artifact
- IN .gitignore - never committed
- REQUIRED BY GO - The embed directive needs it here
Frontend Development Location
👉 Edit frontend files at: /opt/pulse/frontend-modern/src/
Why This Structure?
Go's //go:embed directive has limitations:
- Cannot use
../paths to access parent directories - Cannot follow symbolic links
- Must embed files within the Go module
This is a known Go limitation and our structure works around it.