@@ -47,21 +47,44 @@ The [deploy](#deploy) task of **TYPO3** consists of:
4747
4848The typo3 recipe is based on the [ common] ( /docs/recipe/common.md ) recipe.
4949
50+
51+ TYPO3 Deployer Recipe
52+
53+ Usage Examples:
54+
55+ Deploy to production (using Git as source):
56+ vendor/bin/dep deploy production
57+
58+ Deploy to staging using rsync:
59+ # In deploy.php or servers config, enable rsync
60+ set('use_rsync', true);
61+ vendor/bin/dep deploy staging
62+
63+ Common TYPO3 commands:
64+ vendor/bin/dep typo3:cache: flush # Clear all TYPO3 caches
65+ vendor/bin/dep typo3:cache: warmup # Warmup system caches
66+ vendor/bin/dep typo3:language: update # Update extension language files
67+ vendor/bin/dep typo3:extension: setup # Set up all extensions
68+
69+
5070## Configuration
5171### composer_config
52- [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L10 )
53-
72+ [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L34 )
5473
74+ Parse composer.json and return its contents as an array.
75+ Used for auto-detecting TYPO3 settings like public_dir and bin_dir.
5576
5677``` php title="Default value"
5778return json_decode(file_get_contents('./composer.json'), true, 512, JSON_THROW_ON_ERROR);
5879```
5980
6081
6182### typo3/public_dir
62- [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L17 )
83+ [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L43 )
6384
64- DocumentRoot / WebRoot for the TYPO3 installation
85+ TYPO3 public (web) directory.
86+ Automatically determined from composer.json.
87+ Defaults to "public".
6588:::info Autogenerated
6689The value of this configuration is autogenerated on access.
6790:::
@@ -70,9 +93,10 @@ The value of this configuration is autogenerated on access.
7093
7194
7295### bin/typo3
73- [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L30 )
96+ [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L57 )
7497
75- Path to TYPO3 cli
98+ Path to the TYPO3 CLI binary.
99+ Determined from composer.json "config.bin-dir" or defaults to "vendor/bin/typo3".
76100:::info Autogenerated
77101The value of this configuration is autogenerated on access.
78102:::
@@ -81,7 +105,7 @@ The value of this configuration is autogenerated on access.
81105
82106
83107### log_files
84- [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L43 )
108+ [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L70 )
85109
86110Log files to display when running ` ./vendor/bin/dep logs:app `
87111
@@ -91,11 +115,12 @@ Log files to display when running `./vendor/bin/dep logs:app`
91115
92116
93117### shared_dirs
94- [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L48 )
118+ [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L76 )
95119
96120Overrides [ shared_dirs] ( /docs/recipe/deploy/shared.md#shared_dirs ) from ` recipe/deploy/shared.php ` .
97121
98- Shared directories
122+ Directories that persist between releases.
123+ Shared via symlinks from the shared/ directory.
99124
100125``` php title="Default value"
101126[
@@ -111,7 +136,7 @@ Shared directories
111136
112137
113138### writable_dirs
114- [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L70 )
139+ [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L99 )
115140
116141Overrides [ writable_dirs] ( /docs/recipe/deploy/writable.md#writable_dirs ) from ` recipe/deploy/writable.php ` .
117142
@@ -130,29 +155,30 @@ Writeable directories
130155
131156
132157### composer_options
133- [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L82 )
158+ [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L111 )
134159
135160Overrides [ composer_options] ( /docs/recipe/deploy/vendors.md#composer_options ) from ` recipe/deploy/vendors.php ` .
136161
137- Composer options
162+ Composer install options for production.
138163
139164``` php title="Default value"
140165' --no-dev --verbose --prefer-dist --no-progress --no-interaction --optimize-autoloader'
141166```
142167
143168
144169### use_rsync
145- [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L88 )
170+ [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L118 )
146171
147- If set in the config this recipe uses rsync. Default: false (use the Git repository)
172+ If set in the config this recipe uses rsync.
173+ Default setting: false (uses the Git repository)
148174
149175``` php title="Default value"
150176false
151177```
152178
153179
154180### update_code_task
155- [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L90 )
181+ [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L120 )
156182
157183
158184
@@ -162,7 +188,7 @@ return get('use_rsync') ? 'rsync' : 'deploy:update_code';
162188
163189
164190### rsync
165- [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L118 )
191+ [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L148 )
166192
167193
168194
@@ -186,51 +212,64 @@ return get('use_rsync') ? 'rsync' : 'deploy:update_code';
186212## Tasks
187213
188214### typo3\: update_code {#typo3-update_code}
189- [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L94 )
215+ [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L124 )
190216
191217
192218
193219
194220
195221
196222### typo3\: cache\: flush {#typo3-cache-flush}
197- [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L133 )
223+ [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L168 )
198224
199225TYPO3 - Clear all caches.
200226
201-
227+ TYPO3 Commands
228+ All run via [ bin/php] ( /docs/recipe/common.md#bin/php ) [ release_path] ( /docs/recipe/deploy/release.md#release_path ) /[ bin/typo3] ( /docs/recipe/typo3.md#bin/typo3 ) <command >
202229
203230
204231### typo3\: cache\: warmup {#typo3-cache-warmup}
205- [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L138 )
232+ [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L173 )
206233
207234TYPO3 - Cache warmup for system caches.
208235
209236
210237
211238
212239### typo3\: language\: update {#typo3-language-update}
213- [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L143 )
240+ [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L178 )
214241
215242TYPO3 - Update the language files of all activated extensions.
216243
217244
218245
219246
220247### typo3\: extension\: setup {#typo3-extension-setup}
221- [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L148 )
248+ [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L183 )
222249
223250TYPO3 - Set up all extensions.
224251
225252
226253
227254
228255### deploy {#deploy}
229- [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L156 )
256+ [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/typo3.php#L203 )
230257
231258Deploys a TYPO3 project.
232259
233- Configure "deploy" task group.
260+ Main deploy task for TYPO3.
261+
262+ 1 . Lock deploy to avoid concurrent runs
263+ 2 . Create release directory
264+ 3 . Update code (Git or rsync)
265+ 4 . Symlink shared dirs/files
266+ 5 . Ensure writable dirs
267+ 6 . Install vendors
268+ 7 . Warm up TYPO3 caches
269+ 8 . Run extension setup
270+ 9 . Update language files
271+ 10 . Flush caches
272+ 11 . Unlock and clean up
234273
235274
236275This task is group task which contains next tasks:
0 commit comments