Last active
November 24, 2022 10:03
-
-
Save s2b/725d8145b04cc141836a425bb87ea17a to your computer and use it in GitHub Desktop.
TYPO3 Deployment with Deployer7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import: | |
- recipe/common.php | |
- contrib/rsync.php | |
- contrib/cachetool.php | |
config: | |
shared_files: | |
- .env | |
shared_dirs: | |
- var | |
- public/uploads | |
- public/fileadmin | |
- public/typo3temp | |
- public/typo3conf/l10n | |
bin/typo3cms: '{{release_path}}/bin/typo3cms' | |
after: | |
deploy:symlink: # in reverse order | |
- typo3cms:cache_flush | |
- typo3cms:language_update | |
- typo3cms:upgrade_all | |
- cachetool:clear:opcache | |
- typo3cms:database_updateschema | |
deploy:failed: deploy:unlock | |
tasks: | |
deploy: | |
- deploy:prepare | |
- deploy:publish | |
deploy:update_code: | |
- rsync:warmup | |
- rsync | |
rsync:warmup: | |
- run: 'rsync --archive --quiet {{current_path}}/ {{release_path}}' | |
typo3cms:cache_flush: | |
- run: '{{bin/php}} {{bin/typo3cms}} cache:flush' | |
typo3cms:database_updateschema: | |
- run: '{{bin/php}} {{bin/typo3cms}} database:updateschema safe' | |
typo3cms:language_update: | |
- run: '{{bin/php}} {{bin/typo3cms}} language:update' | |
typo3cms:upgrade_all: | |
- run: '{{bin/php}} {{bin/typo3cms}} upgrade:prepare' | |
- run: '{{bin/php}} {{bin/typo3cms}} upgrade:run all --confirm all --no-interaction' | |
hosts: | |
production: | |
stage: production | |
hostname: example.com | |
remote_user: root | |
port: 22 | |
deploy_path: /path/to/vhost | |
bin/php: /path/to/php | |
cachetool: /path/to/php.socket |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment