Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
macos LaunchAgent to debug, test, and serve a Github page locally
<?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.local.jekyll.server.agent</string>
<key>ProgramArguments</key>
<array>
<string>PATH_TO_YOUR_BUNDLE_BINARY_OR_WRAPPER</string>
<string>exec</string>
<string>jekyll</string>
<string>serve</string>
</array>
<key>WorkingDirectory</key>
<string>PATHTOYOURGITHUBPAGEREPO</string>
<key>WatchPaths</key>
<array>
<string>PATHTOYOURGITHUBPAGEREPO</string>
</array>
<key>StandardOutPath</key>
<string>/tmp/jekyll.stdout</string>
<key>StandardErrorPath</key>
<string>/tmp/jekyll.stderr</string>
<key>KeepAlive</key>
<true/>
<key>Debug</key>
<true/>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment