← back to Marketing Command Center
deploy/com.steve.marketing-calendar-snapshot.plist
53 lines
<?xml version="1.0" encoding="UTF-8"?>
<!-- Daily regenerate + atomic-publish of the /#calendarhub activation snapshot to
Kamatera, so the Timeline never re-freezes. NOT AUTO-INSTALLED — installing a
scheduled job is gated. Install with:
launchctl bootstrap gui/$(id -u) ~/Projects/marketing-command-center/deploy/com.steve.marketing-calendar-snapshot.plist
Undo with:
launchctl bootout gui/$(id -u)/com.steve.marketing-calendar-snapshot
PGUSER is pinned because a headless launchd run has no $USER, and the pg pool
falls back to $USER (else 'stevestudio2', a wrong user) for the /tmp socket. -->
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.steve.marketing-calendar-snapshot</string>
<key>ProgramArguments</key>
<array>
<string>/opt/homebrew/bin/node</string>
<string>/Users/macstudio3/Projects/marketing-command-center/scripts/publish-calendar-snapshot.mjs</string>
</array>
<key>WorkingDirectory</key>
<string>/Users/macstudio3/Projects/marketing-command-center</string>
<key>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<string>/opt/homebrew/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
<key>PGHOST</key>
<string>/tmp</string>
<key>PGDATABASE</key>
<string>dw_unified</string>
<key>PGUSER</key>
<string>macstudio3</string>
</dict>
<key>StartCalendarInterval</key>
<dict>
<key>Hour</key>
<integer>6</integer>
<key>Minute</key>
<integer>30</integer>
</dict>
<key>RunAtLoad</key>
<false/>
<key>StandardOutPath</key>
<string>/Users/macstudio3/Projects/marketing-command-center/data/publish-calendar-snapshot.log</string>
<key>StandardErrorPath</key>
<string>/Users/macstudio3/Projects/marketing-command-center/data/publish-calendar-snapshot.log</string>
</dict>
</plist>