Skip to main content
Version: 8.x

How to Deploy a Drupal 8 Project

require 'recipe/drupal8.php';

Source

Deployer is a free and open source deployment tool written in PHP. It helps you to deploy your Drupal 8 application to a server. It is very easy to use and has a lot of features.

Three main features of Deployer are:

  • Provisioning - provision your server for you.
  • Zero downtime deployment - deploy your application without a downtime.
  • Rollbacks - rollback your application to a previous version, if something goes wrong.

Additionally, Deployer has a lot of other features, like:

  • Easy to use - Deployer is very easy to use. It has a simple and intuitive syntax.
  • Fast - Deployer is very fast. It uses parallel connections to deploy your application.
  • Secure - Deployer uses SSH to connect to your server.
  • Supports all major PHP frameworks - Deployer supports all major PHP frameworks.

You can read more about Deployer in Getting Started.

The deploy task of Drupal 8 consists of:

The drupal8 recipe is based on the common recipe.

Configuration

drupal_site

Source

Set drupal site. Change if you use different site

Default value
'default'

shared_dirs

Source

Overrides shared_dirs from recipe/deploy/shared.php.

Drupal 8 shared dirs

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

shared_files

Source

Overrides shared_files from recipe/deploy/shared.php.

Drupal 8 shared files

Default value
[
'sites/{{drupal_site}}/settings.php',
'sites/{{drupal_site}}/services.yml',
]

writable_dirs

Source

Overrides writable_dirs from recipe/deploy/writable.php.

Drupal 8 Writable dirs

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

Tasks

deploy

Source

This task is group task which contains next tasks: