Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
- copy env.dist if .env doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonbahl committed Jul 19, 2021
1 parent b028869 commit f9e9a97
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion bin/run-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,17 @@ if [ -z "$1" ]; then
print_usage_instructions
fi

BUILD_NO_CACHE=
TAG=${TAG-latest}
WP_VERSION=${WP_VERSION-5.6}
PHP_VERSION=${PHP_VERSION-7.4}

BUILD_NO_CACHE=${BUILD_NO_CACHE-}

if [[ ! -f ".env" ]]; then
echo "No .env file was detected. .env.dist has been copied to .env"
echo "Open the .env file and enter values to match your local environment"
cp .env.dist .env
fi

subcommand=$1; shift
case "$subcommand" in
Expand Down

0 comments on commit f9e9a97

Please sign in to comment.