Skip to content

Commit

Permalink
Add custom domain config to sail share (#531)
Browse files Browse the repository at this point in the history
  • Loading branch information
mojowill authored Jan 27, 2023
1 parent 3efe978 commit 8c9d836
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/sail
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ export SAIL_SHARE_DASHBOARD=${SAIL_SHARE_DASHBOARD:-4040}
export SAIL_SHARE_SERVER_HOST=${SAIL_SHARE_SERVER_HOST:-"laravel-sail.site"}
export SAIL_SHARE_SERVER_PORT=${SAIL_SHARE_SERVER_PORT:-8080}
export SAIL_SHARE_SUBDOMAIN=${SAIL_SHARE_SUBDOMAIN:-""}
export SAIL_SHARE_DOMAIN=${SAIL_SHARE_DOMAIN:-""}

# Function that outputs Sail is not running...
function sail_is_not_running {
Expand Down Expand Up @@ -472,6 +473,7 @@ elif [ "$1" == "share" ]; then
--server-port="$SAIL_SHARE_SERVER_PORT" \
--auth="$SAIL_SHARE_TOKEN" \
--subdomain="$SAIL_SHARE_SUBDOMAIN" \
--domain="$SAIL_SHARE_DOMAIN" \
"$@"

exit
Expand Down

0 comments on commit 8c9d836

Please sign in to comment.