From 1fe38cdad1ec97fd417308b714afba00928b70d2 Mon Sep 17 00:00:00 2001 From: Kristoffer Alfheim Date: Sun, 5 Jun 2016 00:48:20 +0200 Subject: [PATCH] Added support for changing ngrok region --- valet | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/valet b/valet index 75d97b087..194a8708a 100755 --- a/valet +++ b/valet @@ -52,9 +52,17 @@ then fi done + # Determine which region to pass along to ngrok... + if [[ -z "$2" ]] + then + REGION="us" + else + REGION="$2" + fi + # Fetch Ngrok URL In Background... bash "$DIR/cli/scripts/fetch-share-url.sh" & - sudo -u $(logname) "$DIR/bin/ngrok" http -host-header=rewrite "$HOST.$DOMAIN:80" + sudo -u $(logname) "$DIR/bin/ngrok" http -host-header=rewrite -region="$REGION" "$HOST.$DOMAIN:80" exit # Finally, for every other command we will just proxy into the PHP tool