Skip to content

Instantly share code, notes, and snippets.

@mfukar
Created August 14, 2017 09:03
Show Gist options
  • Save mfukar/c1a3674dba2387b6c8e09ce8cdff15b5 to your computer and use it in GitHub Desktop.
Save mfukar/c1a3674dba2387b6c8e09ce8cdff15b5 to your computer and use it in GitHub Desktop.
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