Skip to content
This repository was archived by the owner on Oct 1, 2020. It is now read-only.

Commit 76535e1

Browse files
committed
- Enabled Redis for sessions
1 parent 863829a commit 76535e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/guest/m-reinstall

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,10 @@ php ${install_cmd} 2> >(logError) > >(log)
100100
# Comment out the line above and uncomment the one below to debug Magento Setup script
101101
# php -d xdebug.remote_autostart=1 ${install_cmd} 2> >(logError) > >(log)
102102

103-
#status "Configuring Redis as cache backend"
103+
status "Configuring Redis for session and as cache backend"
104104
php "${MAGENTO_ROOT}/bin/magento" setup:config:set --page-cache=redis --page-cache-redis-server=magento2-redis-master
105105
php "${MAGENTO_ROOT}/bin/magento" setup:config:set --cache-backend=redis --cache-backend-redis-server=magento2-redis-master
106+
php "${MAGENTO_ROOT}/bin/magento" setup:config:set --session-save=redis --session-save-redis-host=magento2-redis-master
106107

107108
if [[ $? != 0 ]]; then
108109
error "Magento installation failed."

0 commit comments

Comments
 (0)