← back to Macstudio2 Dashboard

launchd/com.steve.macstudio2-dashboard.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>
  <key>Label</key>
  <string>com.steve.macstudio2-dashboard</string>
  <key>ProgramArguments</key>
  <array>
    <string>/bin/bash</string>
    <string>-lc</string>
    <string>cd /Users/macstudio3/Projects/macstudio2-dashboard &amp;&amp; /opt/homebrew/bin/node server.js</string>
  </array>
  <key>RunAtLoad</key>
  <true/>
  <key>KeepAlive</key>
  <true/>
  <key>StandardOutPath</key>
  <string>/Users/macstudio3/Projects/macstudio2-dashboard/logs/dashboard.out.log</string>
  <key>StandardErrorPath</key>
  <string>/Users/macstudio3/Projects/macstudio2-dashboard/logs/dashboard.err.log</string>
  <key>EnvironmentVariables</key>
  <dict>
    <key>PORT</key>
    <string>9931</string>
    <key>OLLAMA</key>
    <string>http://localhost:11434</string>
  </dict>
</dict>
</plist>