Skip to content

Commit 3047e1a

Browse files
Fix open in browser with APP_PORT (#663)
* Fix open in browser with APP_PORT * Update sail --------- Co-authored-by: Taylor Otwell <[email protected]>
1 parent b744445 commit 3047e1a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

bin/sail

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,14 @@ elif [ "$1" == "open" ]; then
560560
shift 1
561561

562562
if [ "$EXEC" == "yes" ]; then
563-
open "$APP_URL"
563+
564+
if [[ -n "$APP_PORT" && "$APP_PORT" != "80" ]]; then
565+
FULL_URL="${APP_URL}:${APP_PORT}"
566+
else
567+
FULL_URL="$APP_URL"
568+
fi
569+
570+
open "$FULL_URL"
564571

565572
exit
566573
else

0 commit comments

Comments
 (0)