Skip to content

Commit 666f36a

Browse files
committed
UHF-11098: Fixed 'make new' command.
1 parent 1e51d3a commit 666f36a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tools/make/drupal.mk

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ DRUPAL_CONF_EXISTS := $(shell test -f conf/cmi/core.extension.yml && echo yes ||
44
DRUPAL_CREATE_FOLDERS := /app/public/sites/default/files/private
55
DRUPAL_CREATE_FOLDERS += /app/public/sites/default/files/translations
66

7+
DRUPAL_PROFILE ?= minimal
8+
79
PHONY += drupal-create-folders
810
drupal-create-folders:
911
$(call step,Create folders for Drupal...\n)
@@ -50,6 +52,12 @@ drush-si: ## Site install
5052
$(call step,Do Drush site:install...\n)
5153
$(call drush,si ${DRUSH_SI})
5254

55+
PHONY += drush-helfi-enable-modules
56+
drush-helfi-enable-modules: ## Enable modules and base configurations.
57+
$(call step,Install base configurations...)
58+
$(call drush,cr)
59+
$(call drush,en -y helfi_platform_config helfi_platform_config_base)
60+
5361
PHONY += drush-deploy
5462
drush-deploy: ## Run Drush deploy
5563
$(call step,Run Drush deploy...\n)
@@ -87,7 +95,7 @@ DRUPAL_FRESH_TARGETS := up drupal-create-folders composer-install drush-import-d
8795
PHONY += fresh
8896
fresh: $(DRUPAL_FRESH_TARGETS) ## Build fresh development environment and sync
8997

90-
DRUPAL_NEW_TARGETS := up drupal-create-folders composer-install drush-si $(DRUPAL_POST_INSTALL_TARGETS)
98+
DRUPAL_NEW_TARGETS := up drupal-create-folders composer-install drush-si drush-helfi-enable-modules drush-cr drush-unblock drush-uli
9199
PHONY += new
92100
new: $(DRUPAL_NEW_TARGETS) ## Create a new empty Drupal installation from configuration
93101

0 commit comments

Comments
 (0)