mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-11 22:12:23 +00:00
ec1d8b3303
Additional safeguards to prevent dev/production config conflicts: 1. **hot-dev.sh**: Explicitly export PULSE_DATA_DIR before starting backend - Ensures backend always uses /opt/pulse/tmp/dev-config in dev mode - Prevents accidental fallback to /etc/pulse - Adds logging to show which config directory is being used 2. **sync-production-config.sh**: Smart encryption key handling - Never overwrites existing dev encryption key - Warns if production key is newer (unusual scenario) - Keeps dev key to avoid breaking encrypted configs - Adds detailed logging of sync decisions These changes ensure that when Vite restarts: - Backend always uses the correct dev-config directory - Sync script never breaks working dev configuration - All decisions are logged clearly for debugging Related to previous commit fixing nodes.enc corruption. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>