Explorar o código

Added suppressing of the output from "bin/magento setup:config:set ..." command to prevent appearing of the "We saved default values for these options: ..." messages in the setup logs

Max Uroda %!s(int64=6) %!d(string=hai) anos
pai
achega
a94b57ba34
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      compose/magento-2/bin/setup

+ 4 - 4
compose/magento-2/bin/setup

@@ -43,14 +43,14 @@ bin/clinotty bin/magento indexer:reindex
 echo "Forcing deploy of static content to speed up initial requests..."
 echo "Forcing deploy of static content to speed up initial requests..."
 bin/clinotty bin/magento setup:static-content:deploy -f 
 bin/clinotty bin/magento setup:static-content:deploy -f 
 
 
-echo "Enabling redis for cache..."
+echo "Enabling Redis for cache..."
-bin/clinotty bin/magento setup:config:set --no-interaction --cache-backend=redis --cache-backend-redis-server=redis --cache-backend-redis-db=0
+bin/clinotty bin/magento setup:config:set --no-interaction --cache-backend=redis --cache-backend-redis-server=redis --cache-backend-redis-db=0 > /dev/null
 
 
 echo "Enabling Redis for Full Page Cache..."
 echo "Enabling Redis for Full Page Cache..."
-bin/clinotty bin/magento setup:config:set --no-interaction  --page-cache=redis --page-cache-redis-server=redis --page-cache-redis-db=1
+bin/clinotty bin/magento setup:config:set --no-interaction  --page-cache=redis --page-cache-redis-server=redis --page-cache-redis-db=1 > /dev/null
 
 
 echo "Enabling Redis for session..."
 echo "Enabling Redis for session..."
-bin/clinotty bin/magento setup:config:set --no-interaction --session-save=redis --session-save-redis-host=redis --session-save-redis-log-level=4 --session-save-redis-db=2
+bin/clinotty bin/magento setup:config:set --no-interaction --session-save=redis --session-save-redis-host=redis --session-save-redis-log-level=4 --session-save-redis-db=2 > /dev/null
 
 
 echo "Clearing the cache for good measure..."
 echo "Clearing the cache for good measure..."
 bin/clinotty bin/magento cache:flush
 bin/clinotty bin/magento cache:flush