Commit d988191 1 parent 304e349 commit d988191 Copy full SHA for d988191
File tree 1 file changed +13
-0
lines changed
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ function display_help {
96
96
echo
97
97
echo " ${YELLOW} Sharing:${NC} "
98
98
echo " ${GREEN} sail share${NC} Share the application publicly via a temporary URL"
99
+ echo " ${GREEN} sail open${NC} Open the site in your browser"
99
100
echo
100
101
echo " ${YELLOW} Binaries:${NC} "
101
102
echo " ${GREEN} sail bin ...${NC} Run Composer binary scripts from the vendor/bin directory"
@@ -494,6 +495,18 @@ elif [ "$1" == "share" ]; then
494
495
sail_is_not_running
495
496
fi
496
497
498
+ # Open the site...
499
+ elif [ " $1 " == " open" ]; then
500
+ shift 1
501
+
502
+ if [ " $EXEC " == " yes" ]; then
503
+ open $APP_URL
504
+
505
+ exit
506
+ else
507
+ sail_is_not_running
508
+ fi
509
+
497
510
# Pass unknown commands to the "docker-compose" binary...
498
511
else
499
512
ARGS+=(" $@ " )
You can’t perform that action at this time.
0 commit comments