Created
February 22, 2019 14:13
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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