You can enable a Drupal site setup in the Code Studio pipeline. If you enable it, Code Studio runs drush site:install
after composer install
, and you can:
To enable a Drupal site setup:
ACQUIA_TASKS_SETUP_DRUPAL
environment variable in Code Studio.For information about how to add environment variables in Code Studio, see Adding environment variables.
true
.After enabling the site setup, you can:
install
strategy to install a new Drupal database based on a selected profilesync
strategy to sync an existing database from Cloud PlatformFor information about how the setup strategy affects your Code Studio pipeline, see AutoDevOps pipeline steps.
The following checklist lists the tasks for using the install
strategy:
To set up the install
strategy:
ACQUIA_TASKS_SETUP_DRUPAL_STRATEGY
environment variable in Code Studio.install
. If you leave ACQUIA_TASKS_SETUP_DRUPAL_STRATEGY
unconfigured, Code Studio sets it to install
by default.
The Code Studio pipeline creates a site with a new database based on the selected Drupal profile. If you do not select any profile, Code Studio uses the minimal
profile by default.
To change the profile:
ACQUIA_TASKS_SETUP_DRUPAL_PROFILE
environment variable in Code Studio.After the database is created, Code Studio imports your database configuration depending on the value you set for the ACQUIA_TASKS_SETUP_DRUPAL_CONFIG_IMPORT
environment variable.
To import the database configuration:
ACQUIA_TASKS_SETUP_DRUPAL_CONFIG_IMPORT
environment variable in Code Studio.If you set ACQUIA_TASKS_SETUP_DRUPAL_CONFIG_IMPORT
to false
or leave it unconfigured, Code Studio does not import the configuration.
The following checklist lists the tasks for using the sync
strategy:
To set up the sync
strategy:
ACQUIA_TASKS_SETUP_DRUPAL_STRATEGY
environment variable in Code Studio.sync
.The Code Studio pipeline copies an existing database from a Cloud Platform environment. By default, Code Studio copies the latest backup of the first database from your production environment into the pipeline.
To select a different Cloud Platform environment for copying the database:
ACQUIA_CLOUD_SOURCE_ENVIRONMENT_ID
environment variable in Code Studio.For example, myapp.dev, 14-0c7e79ab-1c4a-424e-8446-76ae8be7e851
.
To select a different database to copy:
ACQUIA_CLOUD_SOURCE_DATABASE_NAME
environment variable in Code Studio.To import the database configuration:
ACQUIA_TASKS_SETUP_DRUPAL_CONFIG_IMPORT
in Code Studio.true
.If you set ACQUIA_TASKS_SETUP_DRUPAL_CONFIG_IMPORT
to false
or leave it unconfigured, Code Studio does not import the configuration.
If this content did not answer your questions, try searching or contacting our support team for further assistance.
Tue Nov 12 2024 10:41:13 GMT+0000 (Coordinated Universal Time)