Skip to content

Commit d7b0ce1

Browse files
author
Ilja Lapkovskis
committed
Fix booting order
1 parent c8f6e49 commit d7b0ce1

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

deploy/start.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff 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
273275
magento_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
279279
magento_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
281285
create_admin_user
282286

0 commit comments

Comments
 (0)