From 6b0998875e8eabffc4b038150b9d9904ed66b889 Mon Sep 17 00:00:00 2001 From: Carlos Priego Date: Wed, 7 Jun 2017 23:19:32 -0500 Subject: [PATCH] Allow valet share to receive Ngrok parameters --- cli/valet.php | 2 +- valet | 9 +-------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/cli/valet.php b/cli/valet.php index 971c17170..5fdfdc6f4 100755 --- a/cli/valet.php +++ b/cli/valet.php @@ -18,7 +18,7 @@ */ Container::setInstance(new Container); -$version = 'v2.0.18'; +$version = 'v2.0.19'; $app = new Application('Valet', $version); diff --git a/valet b/valet index c606a4b8b..f5ad86849 100755 --- a/valet +++ b/valet @@ -64,16 +64,9 @@ then fi done - 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 $USER "$DIR/bin/ngrok" http -host-header=rewrite -region="$REGION" "$HOST.$DOMAIN:$PORT" + sudo -u $USER "$DIR/bin/ngrok" http "$HOST.$DOMAIN:$PORT" -host-header=rewrite ${*:2} exit # Finally, for every other command we will just proxy into the PHP tool