Magallanes TYPO3 Tasks are tasks for easy deployment with Magallanes 3.
Simply add the following dependency to your project’s composer.json file:
"require": {
"teamneusta/magallanes-task-typo3": "^1.2"
}
Finally you can use Magallanes TYPO3 Tasks in your mage.yml
This task set all necessary permission for TYPO3
post-release:
- 'TeamNeusta\Magallanes\Task\TYPO3\PermissionsTask'
Set path to console:
typo3:
console: vendor/helhum/typo3-console/Scripts/typo3cms
This task flushed the TYPO3 cache by helhum/typo3-console
Default usage:
on-deploy:
- 'TeamNeusta\Magallanes\Task\TYPO3\Console\CacheFlushTask'
Force flush by inline definition:
on-deploy:
- 'TeamNeusta\Magallanes\Task\TYPO3\Console\CacheFlushTask': { force-flush-cache: true }
Force flush by global definition:
typo3:
force-flush-cache: true
on-deploy:
- 'TeamNeusta\Magallanes\Task\TYPO3\Console\CacheFlushTask'
This task update the database schema for TYPO3 by helhum/typo3-console
Default usage (*.add,*.change):
on-deploy:
- 'TeamNeusta\Magallanes\Task\TYPO3\Console\DatabaseUpdateSchemaTask'
Update database schema by inline definition:
on-deploy:
- 'TeamNeusta\Magallanes\Task\TYPO3\Console\DatabaseUpdateSchemaTask': { database-update-schema-mode: 'destructive' }
Update database schema by global definition:
typo3:
database-update-schema-mode: 'destructive'
on-deploy:
- 'TeamNeusta\Magallanes\Task\TYPO3\Console\DatabaseUpdateSchemaTask'
New way to use setup your TYPO3 composer.json with follow scripts
"scripts": {
"package-states": [
"@php vendor/helhum/typo3-console/Scripts/typo3cms install:generatepackagestates"
],
"folder-structure": [
"@php vendor/helhum/typo3-console/Scripts/typo3cms install:fixfolderstructure"
],
"ext-setup": [
"@php vendor/helhum/typo3-console/Scripts/typo3cms install:extensionsetupifpossible"
],
"post-autoload-dump": [
"@package-states",
"@folder-structure",
"@ext-setup"
]
}
Old way to use Default usage (--activate-default=true):
on-deploy:
- 'TeamNeusta\Magallanes\Task\TYPO3\Console\InstallGeneratePackagestatesTask'
Default usage:
on-deploy:
- 'TeamNeusta\Magallanes\Task\TYPO3\Console\InstallFixFolderStructureTask'
Default usage:
post-release:
- 'TeamNeusta\Magallanes\Task\TYPO3\Console\ExtensionSetupActiveTask'
magephp:
log_dir: ./Logs
composer:
path: /usr/bin/composer
typo3:
console: bin/typo3cms
force-flush-cache: true
database-update-schema-mode: '*.add,*.change'
web-dir: web
exclude:
- ./app/typo3temp
- ./app/fileadmin
- ./app/uploads
environments:
Production:
user: xxx
host_path: xxx
releases: 4
hosts:
- xxx
pre-deploy:
- composer/install: { flags: '--optimize-autoloader --no-dev --no-interaction --profile' }
on-deploy:
on-release:
- 'TeamNeusta\Magallanes\Task\TYPO3\Console\InstallFixFolderStructureTask'
post-release:
- 'TeamNeusta\Magallanes\Task\TYPO3\Console\DatabaseUpdateSchemaTask'
- 'TeamNeusta\Magallanes\Task\TYPO3\Console\ExtensionSetupActiveTask'
post-deploy: