How to Deploy a Cakephp Project
Deployer is a free and open source deployment tool written in PHP. It helps you to deploy your Cakephp 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 Cakephp consists of:
- deploy:prepare – Prepares a new release
- deploy:vendors – Installs vendors
- deploy:init –
- deploy:run_migrations –
- deploy:publish – Publishes the release
The cakephp recipe is based on the common recipe.
Overrides shared_dirs from
CakePHP 4 Project Template shared dirs
Overrides shared_files from
CakePHP 4 Project Template shared files
Create plugins' symlinks
This task is group task which contains next tasks: