Skip to content

Commit 025c93a

Browse files
Clear cache after site install (#394)
* Clear cache after site install * Have make production use same finalize as starter/starter-dev --------- Co-authored-by: Don Richards <[email protected]>
1 parent b2e773f commit 025c93a

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Makefile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,7 @@ starter_dev: generate-secrets
179179
production: init
180180
$(MAKE) compose-up
181181
docker compose exec -T drupal with-contenv bash -lc 'composer install; chown -R nginx:nginx .'
182-
$(MAKE) drupal-database update-settings-php
183-
docker compose exec -T drupal with-contenv bash -lc "drush si -y --existing-config minimal --account-pass '$(shell cat secrets/live/DRUPAL_DEFAULT_ACCOUNT_PASSWORD)'"
184-
docker compose exec -T drupal with-contenv bash -lc "drush -l $(SITE) user:role:add fedoraadmin admin"
185-
MIGRATE_IMPORT_USER_OPTION=--userid=1 $(MAKE) hydrate
186-
docker compose exec -T drupal with-contenv bash -lc 'drush -l $(SITE) migrate:import --userid=1 islandora_fits_tags'
187-
$(MAKE) login
182+
$(MAKE) starter-finalize ENVIRONMENT=starter
188183

189184

190185
#############################################
@@ -581,7 +576,10 @@ starter-finalize:
581576
docker compose exec -T drupal with-contenv bash -lc 'chown -R nginx:nginx . ; echo "Chown Complete"'
582577
$(MAKE) drupal-database update-settings-php
583578
docker compose exec -T drupal with-contenv bash -lc "drush si -y --existing-config minimal --account-pass '$(shell cat secrets/live/DRUPAL_DEFAULT_ACCOUNT_PASSWORD)'"
579+
docker compose exec -T drupal with-contenv bash -lc "drush cr"
584580
docker compose exec -T drupal with-contenv bash -lc "drush -l $(SITE) user:role:add fedoraadmin admin"
581+
@echo "Checking if Solr's healthy"
582+
docker compose exec -T solr bash -c 'curl -s http://localhost:8983/solr/admin/info/system?wt=json' | jq -r .lucene || (echo "Solr is not healthy, waiting 10 seconds." && sleep 10)
585583
MIGRATE_IMPORT_USER_OPTION=--userid=1 $(MAKE) hydrate
586584
docker compose exec -T drupal with-contenv bash -lc 'drush -l $(SITE) migrate:import --userid=1 --tag=islandora'
587585
$(MAKE) login

0 commit comments

Comments
 (0)