Skip to content

Commit 9964ea6

Browse files
committed
Default php version and document root if not set
1 parent a39d049 commit 9964ea6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/dev-stack.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ export GATEWAY=$(docker network inspect $NETWORK_NAME | grep 'Gateway' | grep -o
177177
source <(sed 's/^/export /' $CONFIG_FILE)
178178

179179
# Prefix's defaults services
180+
[ -z $DOCUMENT_ROOT ] && export DOCUMENT_ROOT=''
181+
[ -z $PHP_VERSION ] && export PHP_VERSION=7.4
180182
if [[ $PREFIX == 'solcloud_' ]]; then
181183
[ -z $HAS_PROXY ] && HAS_PROXY=1
182184
[ -z $HAS_DB ] && HAS_DB=1
@@ -188,7 +190,6 @@ else
188190
[ -z $HAS_RABBIT ] && HAS_RABBIT=0
189191
[ -z $HAS_REDIS ] && HAS_REDIS=0
190192
fi
191-
export DOCUMENT_ROOT=''
192193

193194
compose_up() {
194195
create_volumes

0 commit comments

Comments
 (0)