Last active
April 10, 2021 16:23
-
-
Save KRostyslav/7e32296949e953be9b9a780d15b24bc6 to your computer and use it in GitHub Desktop.
Run localtunnel
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/bash | |
# Script for run localtunnel | |
# https://github.com/localtunnel/localtunnel | |
##### Constants | |
SUBDOMAIN='name' | |
PORT=8080 | |
##### Functions | |
localtunnel() | |
{ | |
echo "=================================================================" | |
echo "===== LocalTunnel server run!!!" | |
lt -s $SUBDOMAIN --port $PORT | |
} | |
until localtunnel; do | |
echo "===== LocalTunnel server crashed!" | |
sleep 2 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment