The symfony documentation describes the deployment and initialization process of a symfony application.
The deployment package is inspired by deployer-extended-symfony5.
The deployment workflow uses the deployer package deployer-extended as basis.
The default configuration for symfony applications is located at set.php and can be overwritten optionally.
If you want to use the symfony deployment functionalities add the belonging autoloader to your project deploy.php:
require_once(__DIR__ . '/vendor/move-elevator/deployer-tools/deployer/symfony/autoload.php');See an example configuration here: symfony example.
The following tasks are symfony specific and extend the default deployer deployment:
The default deployment task for symfony applications can be found here deploy.php
$ dep deploy [host]The symfony cache can be cleared with the following task:
$ dep deploy:cache:clearThe symfony cache can be warmed with the following task:
dep deploy:cache:warmupThe symfony database can be updated with the following task:
$ dep deploy:database:updateNotice: The updating method can be configured with the
deploy_database_update_methodparameter (migrations_migrate|schema_update).
The symfony assets can be installed with the following task:
$ dep deploy:assets:installThe ckeditor assets can be installed with the following task:
$ dep deploy:ckeditor:installThe permissions for the symfony application can be adjusted with the following task:
$ dep deploy:writable:chmodAll deployment tasks can be executed within the ci pipeline or locally. It is recommended to deploy an application via the continuous workflow, the local deployment is just for testing purpose.