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
After you have finished testing the release branch across a representative group of websites in your staging environment, you can deploy the completed features to your production websites.
Use the commands in the following steps to prepare to deploy your code to your production websites.
Ensure you’re using the release branch you tested with your staged websites, replacing [RC] with the name of your release branch:
git checkout [RC]Create a RELEASE.txt file in the sites/all folder (or edit the file if it already exists) and note the feature branches you’ve merged into the release branch.
If you have not yet created the RELEASE.txt file, use the following command to do so:
git add docroot/sites/all/RELEASE.txtCommit the changes to the RELEASE.txt file, replacing [version] with version-specific information:
git commit -m "Updated RELEASE.txt for [version]"Switch to the master branch.
git checkout master git pull origin masterMerge the release branch into the master branch, replacing [RC] with the name of your branch:
git merge --no-ff [RC]Create a tag on the master branch referencing the release branch merge (replacing [version] with your version number, and [message] with an explanatory message), and then push the changes to the code repository.
git tag -a [version] -m [message]
git push origin master
git push origin --tagsImportant
Always deploy a tag—not master or a different branch. Code changes made to a deployed branch deploy to production within minutes. Acquia discourages using a deployed branch as a method to push code commits into production while bypassing the deployment process, as errors with code check-ins will immediately impact production, potentially causing downtime or data loss for your production websites.
When creating tags, use version numbers to describe the contents of the release branch, its release date, or both. For example, the following naming scheme uses 2.71 for the Site Factory version and 20190210 for the date of release:
2.71.20190210.distroAfter you create a new tag in your master branch, update your production websites to use the tag by using the following steps:
Select your application and the Prod environment, and then click the Update code link.
If you’re not already signed in to your Site Factory Prod environment, Cloud Platform will redirect you to a sign-in page. Sign in using an account with the release engineer role.
Site Factory begins the update process, and updates all production websites with the code from the specified tag.
You can track the status of the update on the At a glance section on the Site update status page.
If you determine your code update contains an error affecting your websites, you can pause the code update process and upload revised code to help resolve the issue. For more information, see Hotfixing an Site Factory deployment.
For more information about resolving update errors reported on the Site update status page, see Resolving codebase update errors.
After you complete a release, you must perform the following cleanup tasks on your environment:
A final step of the deployment process must include clearing caches, by using the Site Factory API instead of Drush commands or the Cloud Platform interface—the Site Factory API provides fail-safe logic to prevent concurrent execution of cache-rebuilding tasks. For information about the cache clearing process, see the documentation for the cache-clear Site Factory API endpoint.
After a release, remove unneeded branches to reduce the size of your code repository. To remove a branch, run the following command for each feature branch you want to delete, replacing [feature_branch] with the name of the branch:
git branch -d [feature_branch]Run the following command to remove the now unneeded release branch, replacing [release_branch] with the name of your release branch.
git branch -d [release_branch]Mon Feb 24 13:28:38 2018 - 13:28:38 GMT on February 24, 2018@1519478918 - 13:28:38 GMT on February 24, 20185 hours - Five hours from the current timeIf this content did not answer your questions, try searching or contacting our support team for further assistance.
Mon Feb 24 13:28:38 2018 - 13:28:38 GMT on February 24, 2018@1519478918 - 13:28:38 GMT on February 24, 20185 hours - Five hours from the current timeIf this content did not answer your questions, try searching or contacting our support team for further assistance.