com.hungryroot.celery.plist 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
  3. "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  4. <plist version="1.0">
  5. <dict>
  6. <!-- A unique label -->
  7. <key>Label</key>
  8. <string>com.hungryroot.celery</string>
  9. <!-- Use bash to allow `cd &&` -->
  10. <key>ProgramArguments</key>
  11. <array>
  12. <string>/bin/bash</string>
  13. <string>-lc</string>
  14. <string>
  15. cd /Users/colin.powell/src/github.com/hungryroot/hungryroot \
  16. && eval "$(direnv export bash)" \
  17. && just celery
  18. </string>
  19. </array>
  20. <!-- Run when the agent is loaded -->
  21. <key>RunAtLoad</key>
  22. <true/>
  23. <!-- Optional: restart if it exits -->
  24. <key>KeepAlive</key>
  25. <true/>
  26. <!-- Set a working directory explicitly (recommended) -->
  27. <key>WorkingDirectory</key>
  28. <string>/Users/colin.powell/src/github.com/hungryroot/hungryroot</string>
  29. <!-- Log output -->
  30. <key>StandardOutPath</key>
  31. <string>/tmp/hungryroot-celery.log</string>
  32. <key>StandardErrorPath</key>
  33. <string>/tmp/hungryroot-celery.log</string>
  34. <!-- Ensure PATH includes Homebrew -->
  35. <key>EnvironmentVariables</key>
  36. <dict>
  37. <key>PATH</key>
  38. <string>/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin</string>
  39. </dict>
  40. </dict>
  41. </plist>