← back to Answer Cockpit
com.steve.answer-cockpit.plist
30 lines
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- Answer Cockpit — 127.0.0.1:9805. FILE ONLY; install is a Steve paste:
cp ~/Projects/answer-cockpit/com.steve.answer-cockpit.plist ~/Library/LaunchAgents/ &&
launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/com.steve.answer-cockpit.plist
NEVER add the --test flag here (it is the testability seam, not a runtime mode). -->
<key>Label</key><string>com.steve.answer-cockpit</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/env</string>
<string>node</string>
<string>/Users/macstudio3/Projects/answer-cockpit/server.js</string>
</array>
<key>WorkingDirectory</key><string>/Users/macstudio3/Projects/answer-cockpit</string>
<key>RunAtLoad</key><true/>
<key>KeepAlive</key><true/>
<key>ThrottleInterval</key><integer>10</integer>
<key>StandardOutPath</key><string>/Users/macstudio3/Projects/answer-cockpit/tmp/launchd.out.log</string>
<key>StandardErrorPath</key><string>/Users/macstudio3/Projects/answer-cockpit/tmp/launchd.err.log</string>
<key>EnvironmentVariables</key>
<dict>
<key>PATH</key><string>/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
<key>HOME</key><string>/Users/macstudio3</string>
<key>LANG</key><string>en_US.UTF-8</string>
</dict>
</dict>
</plist>