A machine-readable guide to this site for AI agents and language models is available at/llms.txt(https://dev.acquia.com/llms.txt on the production site).
This article describes the procedure for deploying code to an Acquia Cloud environment by manually creating a build artifact and pushing it to the repository. This process bypasses standard CI/CD workflows like Acquia Code Studio or Acquia Pipelines.
This method should only be used in specific, critical situations, such as:
This is not a standard deployment workflow. Bypassing your automated pipelines means you are also bypassing critical safety checks, such as:
Deploying a manually built artifact can introduce inconsistencies between your source code branch and the live environment. This procedure should be considered a temporary workaround, not a long-term solution.
Before you begin, ensure you have the following:
This process mimics the steps a pipeline would normally automate. You will generate the build artifact locally and push it to a new branch for deployment.
Ensure your local repository is up-to-date with the branch you intend to deploy (e.g., main or develop).
# Go to your main source branch
git checkout main
# Pull the latest changes
git pull origin mainCreate a local branch from your up-to-date source branch. This branch will contain the built artifact and will be pushed to Acquia Cloud. It is good practice to use a descriptive name.
# Create a new branch with a descriptive name, e.g., including the date
git checkout -b build-manual-hotfix-2025-09-17Run the necessary commands to build your application's front-end and back-end dependencies. The most common command is for Composer, which manages PHP dependencies
# Install Composer dependencies, ensuring you skip dev packages and optimize the autoloader
composer install --no-dev --optimize-autoloader
If your project uses front-end build steps, run those as well
# Example for a Node.js-based theme
npm ci
npm run buildYour .gitignore file correctly prevents committed vendor directories and other build artifacts. For this manual process, you must use the --force (-f) flag with git add to override the .gitignore rules and include these files in your commit.
# Force-add the vendor directory and any other built assets
git add -f docroot/vendor
git add -f docroot/core
git add -f docroot/themes/custom/my_theme/dist
# Check the status to see all the files that have been added
git status
# Commit the artifact to your build branch
git commit -m "Manual build artifact for emergency deployment"Only force-add files that are part of the build artifact. Do not add sensitive files or local configuration.
Push your new branch containing the committed artifact directly to your Acquia Cloud remote repository.
# Push the branch to the 'origin' remote (your Acquia repo)
git push origin build-manual-hotfix-2025-09-17build-manual-hotfix-2025-09-17 branch in the code browser.update.php or clear caches.# Delete the remote branch after a successful deployment
git push origin --delete build-manual-hotfix-2025-09-17