-
-
Save sloanlance/50104b70b89175f58ae24fdb36f98e17 to your computer and use it in GitHub Desktop.
Get the local ngrok public URL, which includes the hostname, extracted using jq
This file contains hidden or 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/sh -- | |
# Get the local ngrok public URL, which includes the hostname, extracted using jq | |
# Inspiration: https://gist.github.com/rjz/af40158c529d7c407420fc0de490758b#gistcomment-2594627 | |
curl --silent http://127.0.0.1:4040/api/tunnels | jq -r '.tunnels[0].public_url' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment