deployer/docs/recipe/drupal7.md
Anton Medvedev e80876d90d Update docs
2022-07-26 09:18:44 +02:00

3.0 KiB

How to Deploy Drupal 7

Source

How to deploy a Drupal 7 project with zero downtime?

  • First, install the Deployer.
  • Second, require recipe/drupal7.php recipe into your deploy.php or deploy.yaml file.
  • Third, now you can have a zero downtime deployment!

Did you know that you can deploy Drupal 7 project with a single command? Just run dep deploy. Something went wrong? Just run dep rollback to rollback your changes. Also, you can take an advantages of the Deployer's CLI to deploy your project.

Another cool feature of the Deployer is provisioning. Take any server, and run dep provision command. This command will configure webserver, databases, php, https, and more. You will get everything you need to run your Drupal 7 application.

Deployer does next steps to deploy Drupal 7:

  • Displays info about deployment
  • Prepares host for deploy
  • Locks deploy
  • Prepares release
  • Updates code
  • Creates symlinks for shared files and dirs
  • Makes writable dirs
  • Creates symlink to release
  • Unlocks deploy
  • Cleanup old releases

The drupal7 recipe is based on the common recipe.

Configuration

drupal_site

Source

Set Drupal 7 site. Change if you use different site

'default'

shared_dirs

Source

Overrides shared_dirs from recipe/deploy/shared.php.

Drupal 7 shared dirs

[
    'sites/{{drupal_site}}/files',
]

shared_files

Source

Overrides shared_files from recipe/deploy/shared.php.

Drupal 7 shared files

[
    'sites/{{drupal_site}}/settings.php',
]

writable_dirs

Source

Overrides writable_dirs from recipe/deploy/writable.php.

Drupal 7 writable dirs

[
    'sites/{{drupal_site}}/files',
]

Tasks

deploy

Source

This task is group task which contains next tasks:

drupal:settings

Source

Create and upload Drupal 7 settings.php using values from secrets

drupal:upload_files

Source

Upload Drupal 7 files folder