Skip to content

Commit

Permalink
fix: script not loading all app env files (#482)
Browse files Browse the repository at this point in the history
* fix: script not loading all app env files

* fix: follow spec
  • Loading branch information
LouisHaftmann authored Sep 23, 2022
1 parent c91510a commit 4fefa0f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/sail
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,10 @@ else
fi

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

# Define environment variables...
Expand Down

0 comments on commit 4fefa0f

Please sign in to comment.