The following checklist lists the tasks for using the sync
strategy:
Setting up the sync strategy¶
To set up the sync
strategy:
- Add the
ACQUIA_TASKS_SETUP_DRUPAL_STRATEGY
environment variable in Code Studio. - Set the value of the environment variable to
sync
.
Selecting a database¶
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:
- Add the
ACQUIA_CLOUD_SOURCE_ENVIRONMENT_ID
environment variable in Code Studio.
For example, myapp.dev, 14-0c7e79ab-1c4a-424e-8446-76ae8be7e851
.
- Set the value of the environment variable to the environment alias or UUID of the environment from which you want to copy the database.
To select a different database to copy:
- Add the
ACQUIA_CLOUD_SOURCE_DATABASE_NAME
environment variable in Code Studio. - Set the value of the environment variable to the name of the database you want to copy.
Importing database configuration¶
To import the database configuration:
- Add the
ACQUIA_TASKS_SETUP_DRUPAL_CONFIG_IMPORT
in Code Studio. - Set the value of the environment variable to
true
.