Update entrypoint.sh
Browse files- entrypoint.sh +2 -2
entrypoint.sh
CHANGED
|
@@ -11,12 +11,12 @@ sleep 2
|
|
| 11 |
|
| 12 |
echo "Creating public tunnel..."
|
| 13 |
# Try with the requested subdomain first
|
| 14 |
-
if npx localtunnel --
|
| 15 |
echo "Tunnel established: https://${SUBDOMAIN}.loca.lt"
|
| 16 |
else
|
| 17 |
echo "Subdomain '${SUBDOMAIN}' is taken or an error occurred. Falling back to random subdomain..."
|
| 18 |
# Now let localtunnel generate a random subdomain (blocking call)
|
| 19 |
-
npx localtunnel --
|
| 20 |
fi
|
| 21 |
|
| 22 |
# Cleanup when the tunnel exits
|
|
|
|
| 11 |
|
| 12 |
echo "Creating public tunnel..."
|
| 13 |
# Try with the requested subdomain first
|
| 14 |
+
if npx localtunnel --port 7860 --subdomain "${SUBDOMAIN}"; then
|
| 15 |
echo "Tunnel established: https://${SUBDOMAIN}.loca.lt"
|
| 16 |
else
|
| 17 |
echo "Subdomain '${SUBDOMAIN}' is taken or an error occurred. Falling back to random subdomain..."
|
| 18 |
# Now let localtunnel generate a random subdomain (blocking call)
|
| 19 |
+
npx localtunnel --port 7860
|
| 20 |
fi
|
| 21 |
|
| 22 |
# Cleanup when the tunnel exits
|