The TYPO3 documentation describes the deployment and initialization process of a TYPO3 CMS application.
The deployment package is inspired by deployer-extended-typo3.
The deployment workflow uses the deployer package deployer-extended as basis.
The default configuration for TYPO3 applications is located at set.php and can be overwritten optionally.
If you want to use the TYPO3 deployment functionalities add the belonging autoloader to your project deploy.php:
require_once(__DIR__ . '/vendor/move-elevator/deployer-tools/deployer/typo3/autoload.php');See an example configuration here: typo3 example.
The following tasks are TYPO3 specific and extend the default deployer deployment:
The default deployment task for TYPO3 applications can be found here deploy.php
dep deploy:cache:cleardep deploy:cache:warmupNote
This is just a simple curl request for the public URL configuration of the deployer host.
dep cache:warmupNote
This is using the EXT:typo3-warming extension to warm up the cache.
Clearing and warming the cache in one combined task
dep deploy:cache:clear_and_warmupdep deploy:database:updateBy default a database dump is created on deployments to prod environment. The default configuration file used by the task is:
'.deployment/db-sync-tool/backup-prod.yaml'This can be overwritten by setting 'sync_database_backup_config'. For example:
set('sync_database_backup_config', __DIR__ . '/.deployment/db-sync-tool/some-configation.json');To disable the database backup you can disable the task like this:
task('database:backup')->disable();This command runs following TYPO3 CMS specific commands from the typo3_console:
- typo3cms install:fixfolderstructure
- typo3cms install:extensionsetupifpossible
dep deploy:additional_setup