Skip to content

Instantly share code, notes, and snippets.

@KRostyslav
Last active April 10, 2021 16:23
Show Gist options
  • Save KRostyslav/7e32296949e953be9b9a780d15b24bc6 to your computer and use it in GitHub Desktop.
Save KRostyslav/7e32296949e953be9b9a780d15b24bc6 to your computer and use it in GitHub Desktop.
Run localtunnel
#!/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