.amazeeio.yml Example for Drupal 7
sitegroup: mysitegroup
deploy_tasks:
development:
after_deploy:
- drush -y updb --cache-clear=0
- drush -y cc all
production:
after_deploy:
- drush -y updb --cache-clear=0
- drush -y cc all
shared:
production:
- src: files
dst: sites/default/files
Other important things to note:
- All drush commands are called with a
-y, in order to ensure that no command is waiting for user input, which will not be possible during automated deployments. - Additionally this
-yis added right after thedrushcommand, as in some situations (likedrush rsync) drush would pass the-yto the subcommand (likersync) instead of interpreting it itself. drush updbis called with the parameter--cache-clear=0to ensure that there is no cache clear is called after thedrush updbcommand has executed. This to prevent a double running of a cache clear in case that there was an update to apply. Also to ensure that we call a cache clear on every deployment, because just havingdrush updbas a command itself is not enough, asdrush updbwill only call a cache clear if there actually was an update to apply.