docs/recipe/symfony.md
require 'recipe/symfony.php';
Deployer is a free and open source deployment tool written in PHP. It helps you to deploy your Symfony application to a server. It is very easy to use and has a lot of features.
Three main features of Deployer are:
Additionally, Deployer has a lot of other features, like:
You can read more about Deployer in Getting Started.
The deploy task of Symfony consists of:
The symfony recipe is based on the common recipe.
$result = run('{{bin/console}} --version');
preg_match_all('/(\d+\.?)+/', $result, $matches);
return $matches[0][0] ?? 5.0;
Overrides shared_dirs from recipe/deploy/shared.php.
[
'var/log',
]
Overrides shared_files from recipe/deploy/shared.php.
[
'.env.local',
]
Overrides writable_dirs from recipe/deploy/writable.php.
[
'var',
'var/cache',
'var/log',
'var/sessions',
]
'var/log/*.log'
'{{bin/php}} {{release_or_current_path}}/bin/console'
return '--no-interaction';
Migrates database.
Validate the Doctrine mapping files.
Clears cache.
Optimize environment variables.
Deploys project.
This task is group task which contains next tasks: