mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-23 08:45:04 +01:00
1.8 KiB
1.8 KiB
How to Deploy Sulu
How to deploy a Sulu project with zero downtime?
- First, install the Deployer.
- Second, require
recipe/sulu.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 Sulu 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 Sulu project.
Deployer does next steps to deploy Sulu:
- Displays info about deployment
- Prepares host for deploy
- Locks deploy
- Prepares release
- Updates code
- Creates symlinks for shared files and dirs
- Makes writable dirs
- Installs vendors
- Clears cache
- Creates symlink to release
- Unlocks deploy
- Cleanup old releases
The sulu recipe is based on the symfony recipe.
Configuration
bin/websiteconsole
Tasks
phpcr:migrate
Migrates PHPCR.
deploy:website:cache:clear
Clears cache.
deploy:website:cache:warmup
Warmups cache.