Skip to content

CE-DEV: some updates and tweaks #96

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Sep 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions templates/drupal9/ce-dev/ansible/deploy.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# This actually does not take any backup, but is needed to populate settings.php.
- mysql_backup:
handling: none
credentials_handling: static
credentials_handling: manual
# A list of Drupal sites (for multisites).
- drupal:
sites:
Expand All @@ -35,17 +35,25 @@
no_dev: false
working_dir: "{{ deploy_path }}"
apcu_autoloader: false
- drush:
use_vendor: true
- drush_bin: "{{ deploy_path }}/vendor/drush/drush/drush"
- lhci_run:
# Create a list of URLs to test with LHCI
test_urls:
- "https://{{ _domain_name }}"
pre_tasks:
# You can safely remove these steps once you have a working composer.json.
- name: Download composer file.
get_url:
ansible.builtin.get_url:
url: https://raw.githubusercontent.com/drupal/recommended-project/9.3.x/composer.json
dest: "{{ deploy_path }}/composer.json"
force: false
- name: Install drush.
command:
cmd: composer require drush/drush:11.*
chdir: "{{ deploy_path }}"
community.general.composer:
command: require
arguments: drush/drush:11.*
working_dir: "{{ deploy_path }}"
roles:
- _init # Sets some variables the deploy scripts rely on.
- composer # Composer install step.
Expand All @@ -54,4 +62,5 @@
# - sync/database_sync # Grab database from a remote server.
- database_apply # Run drush updb and config import.
- _exit # Some common housekeeping.
- lhci_run
{% endraw %}
2 changes: 2 additions & 0 deletions templates/drupal9/ce-dev/ansible/provision.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
cli: true
- lhci:
enable_vnc: true
- nodejs:
version: 16.x
{% endraw %}
tasks:
- apt:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
* Include default settings.
*/
require __DIR__ . '/default.settings.php';

/**
* Include local dev settings.
* Include default local dev settings.
*/
require DRUPAL_ROOT . '/sites/example.settings.local.php'
require DRUPAL_ROOT . '/sites/example.settings.local.php';

$databases['default']['default'] = array (
'database' => '{{ build_databases[0].name }}',
Expand All @@ -22,8 +23,11 @@ $databases['default']['default'] = array (

$settings['file_private_path'] = '{{ build_private_file_path }}';
$settings['file_public_path'] = '{{ build_public_file_path }}';

// Drupal < 8.8
$config_directories['sync'] = '{{ build_config_sync_directory }}';
// Drupal 8.8
$settings['config_sync_directory'] = '{{ build_config_sync_directory }}';

/**
* Load local development override configuration, if available.
*/
if (file_exists($app_root . '/' . $site_path . '/settings.local.php')) {
include $app_root . '/' . $site_path . '/settings.local.php';
}