Created
June 26, 2014 19:05
-
-
Save sgonyea/68f1e6ce48fca5295c1f to your computer and use it in GitHub Desktop.
transparent local development with Vagrant / mapped back to Varnish
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
function start-vagrant-ssh-port-forward { | |
ssh-add ~/.vagrant.d/insecure_private_key 2>&1 >/dev/null | |
# The `# ...` are a way to slip comments into the command | |
ssh -L 11211:127.0.0.1:11211 `# <- memcached` \ | |
-L 3306:127.0.0.1:3306 `# <- mysql` \ | |
-L 6379:127.0.0.1:6379 `# <- redis 1` \ | |
-L 6380:127.0.0.1:6380 `# <- redis 2` \ | |
-L 26379:127.0.0.1:26379 `# <- redis sentinel` \ | |
-L 9312:127.0.0.1:9312 `# <- dev sphinx` \ | |
-L 9313:127.0.0.1:9313 `# <- test sphinx` \ | |
-R 8081:127.0.0.1:8081 `# -> local test server` \ | |
-R 8080:127.0.0.1:8080 `# -> local dev server` \ | |
-N vagrant@192.168.33.10 >/dev/null | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment