deployer/docs/recipe/wordpress.md
Anton Medvedev 86c7ed6260 Update docs
2022-07-26 00:19:14 +02:00

2.1 KiB

How to Deploy Wordpress

Source

How to deploy a Wordpress project with zero downtime?

  • First, install the Deployer.
  • Second, require recipe/wordpress.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 Wordpress project with a single command? Just execute dep deploy. Something went wrong? Just run dep rollback to rollback your changes. Also, you can take an advantage 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 Wordpress application.

The wordpress recipe is based on the common recipe.

Configuration

shared_files

Source

Overrides shared_files from recipe/deploy/shared.php.

['wp-config.php']

shared_dirs

Source

Overrides shared_dirs from recipe/deploy/shared.php.

['wp-content/uploads']

writable_dirs

Source

Overrides writable_dirs from recipe/deploy/writable.php.

['wp-content/uploads']

Tasks

deploy

Source

Deploys your project.

This task is group task which contains next tasks: