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¶
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. The default value is true
.
If you add the ACQUIA_TASKS_SETUP_DRUPAL_CONFIG_IMPORT
environment variable in Code Studio, ensure that it is set to true
.