Skip to content

Commit

Permalink
accounting for ngrok change in URL format
Browse files Browse the repository at this point in the history
Changed script to read the URL from their localhost service, that way
future URL changes by them won't break this again.
  • Loading branch information
jkasten2 committed Jul 26, 2023
1 parent 6ede032 commit e7a4130
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/scripts/ngrok.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ startNgrokHTTPSForwarding() {
sleep 5

# Get the ngrok url
read -r rawurl < <(grep -o "https://[^ ]*\.ngrok\.io" ngrok.log)
read -r rawurl < <(curl localhost:4040/api/tunnels | jq -r '.tunnels | .[0] | .public_url')
url=$(echo $rawurl | sed 's/https:\/\///')
echo "ngrok url: $url"
rm -f ngrok_last_url
Expand Down

0 comments on commit e7a4130

Please sign in to comment.