Browse Source

chore: add local<->public test script

pull/2934/head
Gabe Kangas 2 years ago
parent
commit
dae6c0c71a
No known key found for this signature in database
GPG Key ID: 4345B2060657F330
  1. 12
      test/test-local.sh

12
test/test-local.sh

@ -0,0 +1,12 @@ @@ -0,0 +1,12 @@
#!/bin/bash
# This script will make your local Owncast server available at a public URL.
# It's particularly useful for testing on mobile devices.
PORT=8080
USERNAME=$(whoami)
BRANCH=$(git symbolic-ref --short -q HEAD | sed 's/[^a-z A-Z 0-9]//g')
HOSTNAME="oc-$USERNAME-$BRANCH"
echo "Please wait. Making the local server port $PORT available at https://$HOSTNAME.serveo.net"
ssh -R "$HOSTNAME".serveo.net:80:localhost:$PORT serveo.net
Loading…
Cancel
Save