The samples directory contains bare-bones example scripts for each of the supported hooks, plus a variety of useful user-contributed scripts. Git commit -m 'Add execute bit to my-hook.sh' Otherwise, to set the execute bit to a file already in your Git repo: If your script has the execute bit set when you first add it to Git, you're all set. Note that hook scripts must have the Unix "executable" bit in order to run. All stdout and stderr output from all the hooks that ran are displayed in the task log on the Workflow page. If one of the hook scripts exits with non-zero status, the remaining hook scripts are skipped, and the task is marked "failed" on the Workflow page so you know to check it. All scripts in the hook directory are run, in lexicographical (shell glob) order. is a program or shell script within the / directory.Įach time a hookable action occurs, Acquia Cloud runs scripts from the directory common/ and /. is a directory whose name is a Cloud Hook name: see below for supported hooks. is a directory whose name is an environment name: 'dev' for Development, 'test' for Staging, and 'prod' for Production, as well as 'common' for all environments. To install the correct directory structure and sample hook scripts, simply copy this repo into your Acquia Cloud repo. Cloud hooks live in the directory hooks NEXT TO docroot (not inside of docroot). In each branch of your repo, there is a directory named docroot that contains your site's source code. Run your test suite or a site performance test each time new code is deployed.Ĭloud hook scripts live in your Acquia Cloud code repository."Scrub" your Production database when it is copied to Dev or Staging by removing customer emails or disabling production-only modules.Perform Drupal database updates each time new code is deployed.Examples of tasks that you can automate with Cloud Hooks include: Cloud Hooks allow you to automate other tasks as part of these migrations.Ī Cloud Hook is simply a script in your code repository that Acquia Cloud executes on your behalf when a triggering action occurs. The Acquia Cloud Workflow page automates the most common tasks involved in developing a Drupal site: deploying code from a version control system, and migrating code, databases, and files across your Development, Staging, and Production environments. Launch support and hypercare to ensure successful adoption of the Acquia Platform.Cloud Hooks is a feature of Acquia Cloud, the Drupal cloud hosting platform.Content admin training to esure teams use applications to their fullest.Security and performance audits to ensure code is compliant and follows best practices.Accelerate time to launch with Acquia CMS and Site Studio.Full custom Acquia Platform product implementation, migration, and ongoing feature development.Flexible and custom solutions with Drupal and Acquia Product experts to support our customers no matter how complex or unique the situation.Package engagements to define application requirements and technical architecture, application reviews, security audits and performance audits.Technical and project expertise and advice, as you build on the Acquia Platform.Hands-on training for using Acquia Products.Quick Starts that provide a guided overview of Acquia products.Training and enablement for digital teams, online or in-person.We work with our customers as a collaborative team, ensuring that we understand their needs, deliver the right solutions, and complete every project on-time and on-budget. When you choose Acquia Professional Services, you’ll be working directly with the best Acquia Product and Drupal implementation experts in the world to help you meet your Acquia DXP goals and ambitions. The Acquia Professional Services team delivers services to ensure customers are successful on the Acquia Platform.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |