Skip to content

Commit 818b24e

Browse files
committed
Prevented issue with default connection not found during installation magento in production mode.
1 parent e0892d1 commit 818b24e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docker/php-fpm/bin/magento-install

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44

55
set -e
66

7+
if [[ "${MAGENTO_RUN_MODE}" =~ ^(production)$ ]]; then
8+
echo "It's not recommended to install magento in production mode."
9+
echo "Better install in developer mode and then switch to production."
10+
exit
11+
fi
12+
713
echo "Install Magento"
814
MAGENTO_INSTALL="magento setup:install \
915
--key=$MAGENTO_APP_SECRET \

0 commit comments

Comments
 (0)