Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ Run
---

$ sudo tunnels

If you're on a Mac and wanna have tunnels run all the time, load it via launchctl from `/Library/LaunchAgents`:

$ launchctl load jugyo.tunnels.plist

or use [LaunchRocket](https://github.com/jimbojsb/launchrocket), but don't forget to check the "As Root" option.

If you are using rvm:

Expand Down
27 changes: 27 additions & 0 deletions jugyo.tunnels.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?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>jugyo.tunnels</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/env</string>
<string>ruby</string>
<string>-rtunnels</string>
<string>-eTunnels.run!</string>
</array>
<key>KeepAlive</key>
<true/>
<key>RunAtLoad</key>
<true/>
<!-- Uncomment if you encounter problems.
<key>StandardOutPath</key>
<string>/var/log/tunnels.log</string>
<key>StandardErrorPath</key>
<string>/var/log/tunnels.log</string>
<key>Debug</key>
<true/>
-->
</dict>
</plist>