File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -207,11 +207,13 @@ function magento_redis_config {
207207 php bin/magento cache:enable
208208}
209209
210- function magento_varnish_config {
210+ function magento_varnish_endpoint {
211211 echo " ${blue}${bold} Setting location for Varnish cache flushing${normal} "
212212 bin/magento setup:config:set --http-cache-hosts=varnish
213+ }
213214
214- echo " ${blue}${bold} Setting Varnish config for Magento${normal} "
215+ function magento_varnish_config {
216+ echo " ${blue}${bold} Setting Varnish config for Magento${normal} "
215217 php bin/magento config:set system/full_page_cache/varnish/access_list " 127.0.0.1, app, nginx"
216218 php bin/magento config:set system/full_page_cache/varnish/backend_host nginx
217219 php bin/magento config:set system/full_page_cache/varnish/backend_port 80
@@ -272,11 +274,13 @@ magento_flush_config
272274# Setting magento database credentials
273275magento_database_config
274276# Configuring Magento to use Varnish as HTTP cache
275- magento_varnish_config
276- # Configuring Magento to use Redis for session and config storage
277- magento_redis_config
277+ magento_varnish_endpoint
278278# Executing Magento install or migration
279279magento_database_migration
280+ # Configuring Magento to use Redis for session and config storage
281+ magento_redis_config
282+ # Configure Magento to flush varnish
283+ magento_varnish_config
280284# Create admin user if not exists
281285create_admin_user
282286
You can’t perform that action at this time.
0 commit comments