mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 00:20:08 +01:00
Add ARM support for ngrok
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -19,3 +19,4 @@ phpunit.xml.dist export-ignore
|
||||
UPGRADE.md export-ignore
|
||||
|
||||
/bin/ngrok -diff
|
||||
/bin/ngrok-arm -diff
|
||||
|
||||
BIN
bin/ngrok-arm
Executable file
BIN
bin/ngrok-arm
Executable file
Binary file not shown.
@@ -28,6 +28,7 @@ class Diagnose
|
||||
'curl --version',
|
||||
'php --ri curl',
|
||||
'~/.composer/vendor/laravel/valet/bin/ngrok version',
|
||||
'~/.composer/vendor/laravel/valet/bin/ngrok-arm version',
|
||||
'ls -al ~/.ngrok2',
|
||||
'brew info nginx',
|
||||
'brew info php',
|
||||
|
||||
9
valet
9
valet
@@ -78,7 +78,14 @@ then
|
||||
# Fetch Ngrok URL In Background...
|
||||
bash "$DIR/cli/scripts/fetch-share-url.sh" "$HOST" &
|
||||
|
||||
sudo -u "$USER" "$DIR/bin/ngrok" http "$HOST.$TLD:$PORT" -host-header=rewrite $PARAMS
|
||||
arch = $(uname -m)
|
||||
|
||||
if [[ $arch == 'arm64' ]]; then
|
||||
sudo -u "$USER" "$DIR/bin/ngrok-arm" http "$HOST.$TLD:$PORT" -host-header=rewrite $PARAMS
|
||||
else
|
||||
sudo -u "$USER" "$DIR/bin/ngrok" http "$HOST.$TLD:$PORT" -host-header=rewrite $PARAMS"
|
||||
fi
|
||||
|
||||
exit
|
||||
|
||||
# Finally, for every other command we will just proxy into the PHP tool
|
||||
|
||||
Reference in New Issue
Block a user