You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bin/console.sh
+11-4Lines changed: 11 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@
7
7
# of the current script (e.g. "server")
8
8
SCRIPTNAME="bin/$(basename $0)"
9
9
10
+
10
11
# CONFIGFOLDER contains the path
11
12
# to the config folder.
12
13
CONFIGFOLDER="$(pwd)/config"
@@ -37,10 +38,8 @@ fi
37
38
38
39
if [ -z"$ROOT_PROJECT" ];then
39
40
ROOT_PROJECT=$(pwd)
40
-
exit 1
41
41
fi
42
42
43
-
# check the environment variables
44
43
if [ -z"$DATABASE_NAME" ];then
45
44
echo>&2"The DATABASE_NAME variable is not set"
46
45
exit 1
@@ -309,9 +308,17 @@ installMagento() {
309
308
# None
310
309
#######################################
311
310
build() {
311
+
case"$2"in
312
+
mage1)
313
+
sed "s|\$MAGE_DOMAIN|$MAGE_DOMAIN|g; s|\$WEB_USER|$WEB_USER|g; s|\$PUBLIC_DIR|$PUBLIC_DIR|g""$CONFIGFOLDER/nginx/templates/sites-enabled/unsecureMage1.conf.template">"$CONFIGFOLDER/nginx/sites-enabled/default.conf"
314
+
;;
315
+
*)
316
+
sed "s|\$MAGE_DOMAIN|$MAGE_DOMAIN|g; s|\$WEB_USER|$WEB_USER|g""$CONFIGFOLDER/nginx/templates/sites-enabled/unsecure.conf.template">"$CONFIGFOLDER/nginx/sites-enabled/default.conf"
317
+
;;
318
+
esac
319
+
312
320
sed "s|\$WEB_USER|$WEB_USER|g""$CONFIGFOLDER/nginx/templates/nginx.conf.template">"$CONFIGFOLDER/nginx/nginx.conf"
313
321
sed "s|\$WEB_USER|$WEB_USER|g""$CONFIGFOLDER/php/zz-docker.conf.template">"$CONFIGFOLDER/php/zz-docker.conf"
314
-
sed "s|\$MAGE_DOMAIN|$MAGE_DOMAIN|g; s|\$WEB_USER|$WEB_USER|g""$CONFIGFOLDER/nginx/templates/sites-enabled/unsecure.conf.template">"$CONFIGFOLDER/nginx/sites-enabled/default.conf"
315
322
316
323
stop
317
324
ROOT_PROJECT=$ROOT_PROJECT docker-compose -f ${DOCKERCOMPOSEFILE} up -d --build
0 commit comments