Skip to content

Commit

Permalink
Allow valet share to receive Ngrok parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
cpriego committed Jun 8, 2017
1 parent a913abf commit 6b09988
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion cli/valet.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
Container::setInstance(new Container);

$version = 'v2.0.18';
$version = 'v2.0.19';

$app = new Application('Valet', $version);

Expand Down
9 changes: 1 addition & 8 deletions valet
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6b09988

Please sign in to comment.