File tree Expand file tree Collapse file tree 4 files changed +26
-11
lines changed
templates/drupal9/ce-dev/ansible Expand file tree Collapse file tree 4 files changed +26
-11
lines changed Original file line number Diff line number Diff line change 14
14
# This actually does not take any backup, but is needed to populate settings.php.
15
15
- mysql_backup:
16
16
handling: none
17
- credentials_handling: static
17
+ credentials_handling: manual
18
18
# A list of Drupal sites (for multisites).
19
19
- drupal:
20
20
sites:
35
35
no_dev: false
36
36
working_dir: "{{ deploy_path }}"
37
37
apcu_autoloader: false
38
+ - drush:
39
+ use_vendor: true
40
+ - drush_bin: "{{ deploy_path }}/vendor/drush/drush/drush"
41
+ - lhci_run:
42
+ # Create a list of URLs to test with LHCI
43
+ test_urls:
44
+ - "https://{{ _domain_name }}"
38
45
pre_tasks:
39
46
# You can safely remove these steps once you have a working composer.json.
40
47
- name: Download composer file.
41
- get_url:
48
+ ansible.builtin. get_url:
42
49
url: https://raw.githubusercontent.com/drupal/recommended-project/9.3.x/composer.json
43
50
dest: "{{ deploy_path }}/composer.json"
44
51
force: false
45
52
- name: Install drush.
46
- command:
47
- cmd: composer require drush/drush:11.*
48
- chdir: "{{ deploy_path }}"
53
+ community.general.composer:
54
+ command: require
55
+ arguments: drush/drush:11.*
56
+ working_dir: "{{ deploy_path }}"
49
57
roles:
50
58
- _init # Sets some variables the deploy scripts rely on.
51
59
- composer # Composer install step.
54
62
# - sync/database_sync # Grab database from a remote server.
55
63
- database_apply # Run drush updb and config import.
56
64
- _exit # Some common housekeeping.
65
+ - lhci_run
57
66
{% endraw %}
Original file line number Diff line number Diff line change 48
48
cli: true
49
49
- lhci:
50
50
enable_vnc: true
51
+ - nodejs:
52
+ version: 16.x
51
53
{% endraw %}
52
54
tasks:
53
55
- apt:
File renamed without changes.
Original file line number Diff line number Diff line change 4
4
* Include default settings.
5
5
*/
6
6
require __DIR__ . '/default.settings.php';
7
+
7
8
/**
8
- * Include local dev settings.
9
+ * Include default local dev settings.
9
10
*/
10
- require DRUPAL_ROOT . '/sites/example.settings.local.php'
11
+ require DRUPAL_ROOT . '/sites/example.settings.local.php';
11
12
12
13
$databases['default']['default'] = array (
13
14
'database' => '{{ build_databases[0] .name }}',
@@ -22,8 +23,11 @@ $databases['default']['default'] = array (
22
23
23
24
$settings['file_private_path'] = '{{ build_private_file_path }}';
24
25
$settings['file_public_path'] = '{{ build_public_file_path }}';
25
-
26
- // Drupal < 8.8
27
- $config_directories['sync'] = '{{ build_config_sync_directory }}';
28
- // Drupal 8.8
29
26
$settings['config_sync_directory'] = '{{ build_config_sync_directory }}';
27
+
28
+ /**
29
+ * Load local development override configuration, if available.
30
+ */
31
+ if (file_exists($app_root . '/' . $site_path . '/settings.local.php')) {
32
+ include $app_root . '/' . $site_path . '/settings.local.php';
33
+ }
You can’t perform that action at this time.
0 commit comments