Skip to content

Instantly share code, notes, and snippets.

@AKiniyalocts
Created February 22, 2019 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AKiniyalocts/79cf108fbaffa9233a548b79f8a1fe7f to your computer and use it in GitHub Desktop.
Save AKiniyalocts/79cf108fbaffa9233a548b79f8a1fe7f to your computer and use it in GitHub Desktop.
Start ngrok at startup as a LaunchDaemon. Place in your /Library/LaunchDaemons dir
<?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>KeepAlive</key>
<true/>
<key>Label</key>
<string>com.ngrok.onstartup</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/ngrokd</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>StandardErrorPath</key>
<string>/tmp/ngrok.err</string>
</dict>
</plist>
#!/bin/sh
# launches ngrok w/ a ngrok configuration file. Opens the 'jenkins' tunnel
#
/usr/local/bin/ngrok start --config /usr/local/bin/.ngrok2/ngrok.yml jenkins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment