Skip to content

Commit f4f6075

Browse files
committed
Reworked update commands
1 parent 742fb44 commit f4f6075

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

Makefile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ include ${INCLUDE_MAKEFILES}
3838
##
3939
init: composer-install docker-rebuild wait-healthy init-drupal docker-status # Build environment
4040

41-
safe-update: docker-stop composer-install docker-rebuild wait-healthy clear-cache # Update without importing config
42-
4341
# Use this if you would like a target to require that the project containers
4442
# are running before executing the target contents. Note this doesn't test if
4543
# the containers are healthy.
@@ -159,7 +157,11 @@ export-prod: # Export production tarball
159157
##
160158
init-drupal: drupal-install config-init config-import clear-cache
161159

162-
update: docker-stop composer-install docker-rebuild config-import clear-cache # Run the 'rebuild' task then import configuration and clear Drupal's cache
160+
# Run the 'rebuild' task then import configuration and clear Drupal's cache.
161+
update: docker-stop composer-install docker-rebuild wait-healthy clear-cache config-import updb clear-cache
162+
163+
# Update without importing config.
164+
safe-update: docker-stop composer-install docker-rebuild wait-healthy clear-cache updb clear-cache
163165

164166
drupal-install: docker-running
165167
$(CURDIR)/bin/drush \
@@ -172,6 +174,9 @@ drupal-install: docker-running
172174
install_configure_form.enable_update_status_emails=NULL
173175
$(CURDIR)/bin/tool chmod 777 /var/www/webroot/sites/default/files
174176

177+
updb:
178+
$(CURDIR)/bin/drush updatedb --yes
179+
175180
config-init: docker-running
176181
@if [ -e ./config/system.site.yml ]; then \
177182
echo "Config found. Processing setting uuid..."; \

0 commit comments

Comments
 (0)