Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 38 additions & 37 deletions docs/recipe/typo3.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ The [deploy](#deploy) task of **TYPO3** consists of:
* [deploy:release](/docs/recipe/deploy/release.md#deploy-release) – Prepares release
* [typo3:update_code](/docs/recipe/typo3.md#typo3-update_code) –
* [deploy:shared](/docs/recipe/deploy/shared.md#deploy-shared) – Creates symlinks for shared files and dirs
* [typo3:install:fixfolderstructure](/docs/recipe/typo3.md#typo3-install-fixfolderstructure) – TYPO3 - Fix folder structure
* [deploy:writable](/docs/recipe/deploy/writable.md#deploy-writable) – Makes writable dirs
* [deploy:vendors](/docs/recipe/deploy/vendors.md#deploy-vendors) – Installs vendors
* [typo3:cache:warmup](/docs/recipe/typo3.md#typo3-cache-warmup) – TYPO3 - Cache warmup for system caches
* [typo3:database:updateschema](/docs/recipe/typo3.md#typo3-database-updateschema) – TYPO3 - Update database schema
* [typo3:extension:setup](/docs/recipe/typo3.md#typo3-extension-setup) – TYPO3 - Set up all extensions
* [typo3:language:update](/docs/recipe/typo3.md#typo3-language-update) – TYPO3 - Update the language files of all activated extensions
* [deploy:vendors](/docs/recipe/deploy/vendors.md#deploy-vendors) – Installs vendors
* [typo3:cache:flush](/docs/recipe/typo3.md#typo3-cache-flush) – TYPO3 - Clear all caches
* [typo3:cache:warmup](/docs/recipe/typo3.md#typo3-cache-warmup) – TYPO3 - Cache warmup for system caches
* [deploy:publish](/docs/recipe/common.md#deploy-publish) – Publishes the release
* [deploy:symlink](/docs/recipe/deploy/symlink.md#deploy-symlink) – Creates symlink to release
* [deploy:unlock](/docs/recipe/deploy/lock.md#deploy-unlock) – Unlocks deploy
Expand All @@ -64,15 +64,16 @@ Deploy to staging using rsync:
vendor/bin/dep deploy staging

Common TYPO3 commands:
vendor/bin/dep typo3:cache:flush # Clear all TYPO3 caches
vendor/bin/dep typo3:cache:warmup # Warmup system caches
vendor/bin/dep typo3:language:update # Update extension language files
vendor/bin/dep typo3:extension:setup # Set up all extensions
vendor/bin/dep typo3:cache:flush # Clear all TYPO3 caches
vendor/bin/dep typo3:cache:warmup # Warmup system caches
vendor/bin/dep typo3:language:update # Update extension language files
vendor/bin/dep typo3:extension:setup # Set up all extensions
vendor/bin/dep typo3:install:fixfolderstructure # Automatically create required files and folders for TYPO3


## Configuration
### composer_config
[Source](https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L34)
[Source](https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L35)

Parse composer.json and return its contents as an array.
Used for auto-detecting TYPO3 settings like public_dir and bin_dir.
Expand All @@ -83,7 +84,7 @@ return json_decode(file_get_contents('./composer.json'), true, 512, JSON_THROW_O


### typo3/public_dir
[Source](https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L43)
[Source](https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L44)

TYPO3 public (web) directory.
Automatically determined from composer.json.
Expand All @@ -96,7 +97,7 @@ The value of this configuration is autogenerated on access.


### bin/typo3
[Source](https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L57)
[Source](https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L58)

Path to the TYPO3 CLI binary.
Determined from composer.json "config.bin-dir" or defaults to "vendor/bin/typo3".
Expand All @@ -108,7 +109,7 @@ The value of this configuration is autogenerated on access.


### log_files
[Source](https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L70)
[Source](https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L71)

Log files to display when running `./vendor/bin/dep logs:app`

Expand All @@ -118,7 +119,7 @@ Log files to display when running `./vendor/bin/dep logs:app`


### shared_dirs
[Source](https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L76)
[Source](https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L77)

Overrides [shared_dirs](/docs/recipe/deploy/shared.md#shared_dirs) from `recipe/deploy/shared.php`.

Expand All @@ -139,7 +140,7 @@ Shared via symlinks from the shared/ directory.


### writable_dirs
[Source](https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L99)
[Source](https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L100)

Overrides [writable_dirs](/docs/recipe/deploy/writable.md#writable_dirs) from `recipe/deploy/writable.php`.

Expand All @@ -158,7 +159,7 @@ Writeable directories


### composer_options
[Source](https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L111)
[Source](https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L112)

Overrides [composer_options](/docs/recipe/deploy/vendors.md#composer_options) from `recipe/deploy/vendors.php`.

Expand All @@ -170,7 +171,7 @@ Composer install options for production.


### use_rsync
[Source](https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L117)
[Source](https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L118)

If set in the config this recipe uses rsync.
Default setting: false (uses the Git repository)
Expand All @@ -181,7 +182,7 @@ false


### update_code_task
[Source](https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L119)
[Source](https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L120)



Expand All @@ -191,7 +192,7 @@ return get('use_rsync') ? 'rsync' : 'deploy:update_code';


### rsync
[Source](https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L147)
[Source](https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L148)



Expand All @@ -212,7 +213,7 @@ return get('use_rsync') ? 'rsync' : 'deploy:update_code';


### typo3_updateschema_types
[Source](https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L164)
[Source](https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L165)

List of schema update types.
`safe` includes all necessary operations, to add or change fields or tables.
Expand All @@ -226,15 +227,15 @@ List of schema update types.
## Tasks

### typo3\:update_code {#typo3-update_code}
[Source](https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L123)
[Source](https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L124)






### typo3\:cache\:flush {#typo3-cache-flush}
[Source](https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L173)
[Source](https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L174)

TYPO3 - Clear all caches.

Expand All @@ -243,39 +244,39 @@ All run via [bin/php](/docs/recipe/common.md#bin/php) [release_path](/docs/recip


### typo3\:cache\:warmup {#typo3-cache-warmup}
[Source](https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L178)
[Source](https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L179)

TYPO3 - Cache warmup for system caches.




### typo3\:language\:update {#typo3-language-update}
[Source](https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L183)
[Source](https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L184)

TYPO3 - Update the language files of all activated extensions.




### typo3\:extension\:setup {#typo3-extension-setup}
[Source](https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L188)
[Source](https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L189)

TYPO3 - Set up all extensions.




### typo3\:database\:updateschema {#typo3-database-updateschema}
[Source](https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L193)
### typo3\:install\:fixfolderstructure {#typo3-install-fixfolderstructure}
[Source](https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L194)

TYPO3 - Update database schema.
TYPO3 - Fix folder structure.




### deploy {#deploy}
[Source](https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L214)
[Source](https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L215)

Deploys a TYPO3 project.

Expand All @@ -285,13 +286,13 @@ Main deploy task for TYPO3.
2. Create release directory
3. Update code (Git or rsync)
4. Symlink shared dirs/files
5. Ensure writable dirs
6. Install vendors
7. Warm up TYPO3 caches
8. Perform schema updates
9. Run extension setup
10. Update language files
11. Flush caches
5. Fix TYPO3 folder structure
6. Ensure writable dirs
7. Run extension setup & perform schema updates
8. Update language files
9. Install composer vendors
10. Flush caches
11. Warm up TYPO3 caches
12. Unlock and clean up


Expand All @@ -302,13 +303,13 @@ This task is group task which contains next tasks:
* [deploy:release](/docs/recipe/deploy/release.md#deploy-release)
* [typo3:update_code](/docs/recipe/typo3.md#typo3-update_code)
* [deploy:shared](/docs/recipe/deploy/shared.md#deploy-shared)
* [typo3:install:fixfolderstructure](/docs/recipe/typo3.md#typo3-install-fixfolderstructure)
* [deploy:writable](/docs/recipe/deploy/writable.md#deploy-writable)
* [deploy:vendors](/docs/recipe/deploy/vendors.md#deploy-vendors)
* [typo3:cache:warmup](/docs/recipe/typo3.md#typo3-cache-warmup)
* [typo3:database:updateschema](/docs/recipe/typo3.md#typo3-database-updateschema)
* [typo3:extension:setup](/docs/recipe/typo3.md#typo3-extension-setup)
* [typo3:language:update](/docs/recipe/typo3.md#typo3-language-update)
* [deploy:vendors](/docs/recipe/deploy/vendors.md#deploy-vendors)
* [typo3:cache:flush](/docs/recipe/typo3.md#typo3-cache-flush)
* [typo3:cache:warmup](/docs/recipe/typo3.md#typo3-cache-warmup)
* [deploy:publish](/docs/recipe/common.md#deploy-publish)


35 changes: 18 additions & 17 deletions recipe/typo3.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@
* vendor/bin/dep deploy staging
*
* Common TYPO3 commands:
* vendor/bin/dep typo3:cache:flush # Clear all TYPO3 caches
* vendor/bin/dep typo3:cache:warmup # Warmup system caches
* vendor/bin/dep typo3:language:update # Update extension language files
* vendor/bin/dep typo3:extension:setup # Set up all extensions
* vendor/bin/dep typo3:cache:flush # Clear all TYPO3 caches
* vendor/bin/dep typo3:cache:warmup # Warmup system caches
* vendor/bin/dep typo3:language:update # Update extension language files
* vendor/bin/dep typo3:extension:setup # Set up all extensions
* vendor/bin/dep typo3:install:fixfolderstructure # Automatically create required files and folders for TYPO3
*/

namespace Deployer;
Expand Down Expand Up @@ -189,9 +190,9 @@
run('{{bin/php}} {{release_path}}/{{bin/typo3}} extension:setup');
});

desc('TYPO3 - Update database schema');
task('typo3:database:updateschema', function () {
run('{{bin/php}} {{release_path}}/{{bin/typo3}} database:updateschema {{typo3_updateschema_types}}');
desc('TYPO3 - Fix folder structure');
task('typo3:install:fixfolderstructure', function () {
run('{{bin/php}} {{release_path}}/{{bin/typo3}} install:fixfolderstructure');
});

/**
Expand All @@ -201,13 +202,13 @@
* 2. Create release directory
* 3. Update code (Git or rsync)
* 4. Symlink shared dirs/files
* 5. Ensure writable dirs
* 6. Install vendors
* 7. Warm up TYPO3 caches
* 8. Perform schema updates
* 9. Run extension setup
* 10. Update language files
* 11. Flush caches
* 5. Fix TYPO3 folder structure
* 6. Ensure writable dirs
* 7. Run extension setup & perform schema updates
* 8. Update language files
* 9. Install composer vendors
* 10. Flush caches
* 11. Warm up TYPO3 caches
* 12. Unlock and clean up
*/
desc('Deploys a TYPO3 project');
Expand All @@ -218,13 +219,13 @@
'deploy:release',
'typo3:update_code',
'deploy:shared',
'typo3:install:fixfolderstructure',
'deploy:writable',
'deploy:vendors',
'typo3:cache:warmup',
'typo3:database:updateschema',
'typo3:extension:setup',
'typo3:language:update',
'deploy:vendors',
'typo3:cache:flush',
'typo3:cache:warmup',
'deploy:publish',
]);

Expand Down