← back to Commercialrealestate
deploy/README.md
20 lines
# cre-viewer reboot persistence
`com.steve.cre-viewer.plist` is a launchd LaunchAgent that keeps the CRE viewer
(`scripts/serve.js`, port 9911, bound to 127.0.0.1) alive across reboots and crashes.
- RunAtLoad → starts on login/reboot
- KeepAlive → auto-respawns if the process dies
- No pm2 involvement (pm2 daemon is unreliable on this box)
## Install / update
```sh
cp deploy/com.steve.cre-viewer.plist ~/Library/LaunchAgents/
launchctl bootout gui/$(id -u)/com.steve.cre-viewer 2>/dev/null
launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/com.steve.cre-viewer.plist
launchctl kickstart gui/$(id -u)/com.steve.cre-viewer
```
Tailnet access (persists separately via `tailscale serve`):
https://stevestudio2s-mac-studio.tail79cb8e.ts.net:9911