2.0 KiB
How to Deploy Wordpress
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, run dep deploy
command.
Did you know that you can deploy Wordpress project with a single command? Just execute dep deploy
.
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 common recipe.
Configuration
shared_files
Overrides shared_files from recipe/deploy/shared.php
.
['wp-config.php']
shared_dirs
Overrides shared_dirs from recipe/deploy/shared.php
.
['wp-content/uploads']
writable_dirs
Overrides writable_dirs from recipe/deploy/writable.php
.
['wp-content/uploads']
Tasks
deploy
Deploys your project.
This task is group task which contains next tasks: