Pulse/scripts
rcourtman ec1d8b3303 fix: ensure PULSE_DATA_DIR is exported in dev mode and improve sync validation
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>
2025-10-01 07:33:20 +00:00
..
dev feat: add OIDC single sign-on 2025-09-29 10:22:27 +00:00
systemd feat: add automatic stable update system 2025-08-27 15:37:02 +00:00
.go-version feat: unify styling and improve cluster detection 2025-09-28 18:46:52 +00:00
build-release.sh enhance: improve mock data realism and alert system 2025-09-02 21:11:01 +00:00
dev-hot.sh Align dev ports and improve auto-register UX 2025-09-29 15:05:59 +00:00
hot-dev.sh fix: ensure PULSE_DATA_DIR is exported in dev mode and improve sync validation 2025-10-01 07:33:20 +00:00
install-go-toolchain.sh feat: unify styling and improve cluster detection 2025-09-28 18:46:52 +00:00
make-tests-safe.sh fix: improve node disk stats reliability when GetNodeStatus fails (addresses #402) 2025-08-31 22:43:32 +00:00
protect-mock-nodes.sh fix: improve node disk stats reliability when GetNodeStatus fails (addresses #402) 2025-08-31 22:43:32 +00:00
pulse-auto-update.sh fix: add missing auto-update script 2025-08-29 20:34:22 +00:00
run-tests-mock.sh fix: improve node disk stats reliability when GetNodeStatus fails (addresses #402) 2025-08-31 22:43:32 +00:00
sync-production-config.sh fix: ensure PULSE_DATA_DIR is exported in dev mode and improve sync validation 2025-10-01 07:33:20 +00:00
take-all-screenshots.js fix: regenerate all screenshots in dark mode 2025-08-04 21:33:39 +00:00
take-screenshots.js feat: improve screenshots and mobile UI responsiveness 2025-08-30 12:25:53 +00:00
test-vm-disk.sh docs: fix VM disk monitoring documentation and remove false token limitation claims 2025-09-30 15:14:23 +00:00
toggle-mock-pure.sh fix: replace old PVENodeTable with NodeSummaryTable for correct column ordering 2025-08-29 13:55:53 +00:00
toggle-mock.sh feat: add real-time streaming discovery and improve dev/mock mode switching 2025-09-30 13:13:32 +00:00