You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The sail open command does not work, due to a mysterious dependency on some url open utility that might or might not even exist. Said utility is simply called ... "open" 👀
The offending code is at the veeeeeery bottom of the sail script: (line 560 at the time of writing)
# Open the site...elif [ "$1"=="open" ];thenshift 1
if [ "$EXEC"=="yes" ];thenif [[ -n"$APP_PORT"&&"$APP_PORT"!="80" ]];then
FULL_URL="${APP_URL}:${APP_PORT}"else
FULL_URL="$APP_URL"fi
open "$FULL_URL"exitelse
sail_is_not_running
fifi
What is this 'open' executable? I don't have it, and haven't heard of it? It isn't in my package manager. Doubt.
EDIT: It seems open is in fact a thing, lol... just not on linux 😿
I'll try to submit a fix for this hopefully soon, but if someone takes this before me - I think an xdg-open should do.
Steps To Reproduce
Init a new laravel app with sail.
Run sail open
Beyold the mysterious error message: /vendor/laravel/sail/bin/sail: line 572: open: command not found
The text was updated successfully, but these errors were encountered:
Sail Version
1.26
Laravel Version
11.30.0
PHP Version
8.3.11
Operating System
Linux
OS Version
Alpine Edge
Description
The
sail open
command does not work, due to a mysterious dependency on some url open utility that might or might not even exist. Said utility is simply called ... "open" 👀The offending code is at the veeeeeery bottom of the sail script: (line 560 at the time of writing)
What is this 'open' executable? I don't have it, and haven't heard of it? It isn't in my package manager. Doubt.
EDIT: It seems open is in fact a thing, lol... just not on linux 😿
I'll try to submit a fix for this hopefully soon, but if someone takes this before me - I think an xdg-open should do.
Steps To Reproduce
sail open
/vendor/laravel/sail/bin/sail: line 572: open: command not found
The text was updated successfully, but these errors were encountered: