With Copilot
Acquia Copilot is a conversational AI connected into our product documentation and knowledge base. Ask Copilot about product features, technical details, troubleshooting and how to get started with Acquia products.
Sign in to use Acquia Copilot
When running tests in your Cloud Platform CD environment, you may want to copy a database from another Cloud Platform environment into your Cloud Platform CD environment.
To sync a database as part of a deployment:
cde-databases key to your YAML file as described in Creating and managing your build definition file. Any databases you want to copy must be explicitly specified in the cde-databases key.For more information about the Cloud Platform CD user interface and example build definition files, see Managing your Pipelines in the Cloud Platform interface and Example Pipelines build definition files respectively.
To select a source database for database syncing:
Select More Links > View Application Info.
In the DB Sync source environment, section, select the environment to copy the database from, and your selection will be saved.
After selecting a source database for syncing and adding a cde-databases key to your YAML file, add a post-deploy step to your events key as displayed in the following example, replacing db1 and db2 with databases listed as parameters in the cde-databases key:
version: 1.2.0
cde-databases:
- db1
- db2
events:
post-deploy:
steps:
# Deploy the build artifact to an on-demand environment,
# and sync the specified databases.
- deploy:
script:
- pipelines-deploy
- pipelines-sync-dbs db1 db2In the previous example, the pipelines-deploy command creates the environment and deploys the build result. The pipelines-sync-dbs command syncs the databases provided as parameters, provided they are also listed as parameters in the cde-databases key.
If this content did not answer your questions, try searching or contacting our support team for further assistance.
If this content did not answer your questions, try searching or contacting our support team for further assistance.