.amazeeio.yml Example for Drupal 8 without Composer
If Drupal 8 is regularly installed, there are no special precautions to take in terms of subfolders for the Drupal itself.
sitegroup: mysitegroup deploy_tasks: development: after_deploy: - drush -y updb --cache-clear=0 - drush -y cr production: after_deploy: - drush -y updb --cache-clear=0 - drush -y cr 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 the
drushcommand, as in some situations (like
drush rsync) drush would pass the
-yto the subcommand (like
rsync) instead of interpreting it itself.
drush updbis called with the parameter
--cache-clear=0to ensure that there is no cache clear is called after the
drush 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 having
drush updbas a command itself is not enough, as
drush updbwill only call a cache clear if there actually was an update to apply.