Created
May 15, 2019 14:53
-
-
Save yojona/cc3dc74b1d12dfcfdcd0da6f59b64817 to your computer and use it in GitHub Desktop.
Expose your localhost to internet
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
# Add this function to your source | |
expose () { | |
if [ -n "$1" ]; then | |
ssh -R $3:80:$1 serveo.net | |
else | |
ssh -R 80:$1 serveo.net | |
fi | |
} | |
# example: expose localhost:3000 as myapp | |
# https://myapp.serveo.net |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment