Created
July 20, 2018 18:11
-
-
Save cronfy/199325e7baa6051efe21b1a5fbbb2ef7 to your computer and use it in GitHub Desktop.
ssh proxy livereload to docker
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
#!/usr/bin/env bash | |
docker_host=$1 | |
if [ -z "$docker_host" ] ; then | |
echo "Syntax: `basename $0` <docker_host>" >&2 | |
exit 1 | |
fi | |
ssh localhost -R 127.0.0.1:35729:$docker_host:35729 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment