Skip to content

Commit

Permalink
refs #206 (#207)
Browse files Browse the repository at this point in the history
Co-authored-by: 丸山 真太郎 <[email protected]>
  • Loading branch information
smaruy30 and smaruy30 authored Jul 30, 2021
1 parent f7f9b25 commit 05c2128
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions bin/sail
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env bash

UNAMEOUT="$(uname -s)"

WHITE='\033[1;37m'
Expand All @@ -18,6 +17,11 @@ if [ "$MACHINE" == "UNKNOWN" ]; then
exit 1
fi

# Source the ".env" file so Laravel's environment variables are available...
if [ -f ./.env ]; then
source ./.env
fi

# Define environment variables...
export APP_PORT=${APP_PORT:-80}
export APP_SERVICE=${APP_SERVICE:-"laravel.test"}
Expand Down Expand Up @@ -61,10 +65,7 @@ function sail_is_not_running {
}

if [ $# -gt 0 ]; then
# Source the ".env" file so Laravel's environment variables are available...
if [ -f ./.env ]; then
source ./.env
fi


# Proxy PHP commands to the "php" binary on the application container...
if [ "$1" == "php" ]; then
Expand Down

0 comments on commit 05c2128

Please sign in to comment.