2.4 KiB
How to Deploy Joomla
How to deploy a Joomla project with zero downtime?
- First, install the Deployer.
- Second, require
recipe/joomla.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 Joomla 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 Joomla application.
Deployer does next steps to deploy Joomla:
- 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 joomla recipe is based on the common recipe.
Configuration
shared_files
Overrides shared_files from recipe/deploy/shared.php
.
['configuration.php']
shared_dirs
Overrides shared_dirs from recipe/deploy/shared.php
.
['images']
writable_dirs
Overrides writable_dirs from recipe/deploy/writable.php
.
['images']
Tasks
deploy
Deploys your project.
This task is group task which contains next tasks: