@@ -47,21 +47,44 @@ The [deploy](#deploy) task of **TYPO3** consists of:
47
47
48
48
The typo3 recipe is based on the [ common] ( /docs/recipe/common.md ) recipe.
49
49
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
+
50
70
## Configuration
51
71
### 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 )
54
73
74
+ Parse composer.json and return its contents as an array.
75
+ Used for auto-detecting TYPO3 settings like public_dir and bin_dir.
55
76
56
77
``` php title="Default value"
57
78
return json_decode(file_get_contents('./composer.json'), true, 512, JSON_THROW_ON_ERROR);
58
79
```
59
80
60
81
61
82
### 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 )
63
84
64
- DocumentRoot / WebRoot for the TYPO3 installation
85
+ TYPO3 public (web) directory.
86
+ Automatically determined from composer.json.
87
+ Defaults to "public".
65
88
:::info Autogenerated
66
89
The value of this configuration is autogenerated on access.
67
90
:::
@@ -70,9 +93,10 @@ The value of this configuration is autogenerated on access.
70
93
71
94
72
95
### 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 )
74
97
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".
76
100
:::info Autogenerated
77
101
The value of this configuration is autogenerated on access.
78
102
:::
@@ -81,7 +105,7 @@ The value of this configuration is autogenerated on access.
81
105
82
106
83
107
### 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 )
85
109
86
110
Log files to display when running ` ./vendor/bin/dep logs:app `
87
111
@@ -91,11 +115,12 @@ Log files to display when running `./vendor/bin/dep logs:app`
91
115
92
116
93
117
### 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 )
95
119
96
120
Overrides [ shared_dirs] ( /docs/recipe/deploy/shared.md#shared_dirs ) from ` recipe/deploy/shared.php ` .
97
121
98
- Shared directories
122
+ Directories that persist between releases.
123
+ Shared via symlinks from the shared/ directory.
99
124
100
125
``` php title="Default value"
101
126
[
@@ -111,7 +136,7 @@ Shared directories
111
136
112
137
113
138
### 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 )
115
140
116
141
Overrides [ writable_dirs] ( /docs/recipe/deploy/writable.md#writable_dirs ) from ` recipe/deploy/writable.php ` .
117
142
@@ -130,29 +155,30 @@ Writeable directories
130
155
131
156
132
157
### 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 )
134
159
135
160
Overrides [ composer_options] ( /docs/recipe/deploy/vendors.md#composer_options ) from ` recipe/deploy/vendors.php ` .
136
161
137
- Composer options
162
+ Composer install options for production.
138
163
139
164
``` php title="Default value"
140
165
' --no-dev --verbose --prefer-dist --no-progress --no-interaction --optimize-autoloader'
141
166
```
142
167
143
168
144
169
### 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 )
146
171
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)
148
174
149
175
``` php title="Default value"
150
176
false
151
177
```
152
178
153
179
154
180
### 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 )
156
182
157
183
158
184
@@ -162,7 +188,7 @@ return get('use_rsync') ? 'rsync' : 'deploy:update_code';
162
188
163
189
164
190
### 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 )
166
192
167
193
168
194
@@ -186,51 +212,64 @@ return get('use_rsync') ? 'rsync' : 'deploy:update_code';
186
212
## Tasks
187
213
188
214
### 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 )
190
216
191
217
192
218
193
219
194
220
195
221
196
222
### 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 )
198
224
199
225
TYPO3 - Clear all caches.
200
226
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 >
202
229
203
230
204
231
### 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 )
206
233
207
234
TYPO3 - Cache warmup for system caches.
208
235
209
236
210
237
211
238
212
239
### 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 )
214
241
215
242
TYPO3 - Update the language files of all activated extensions.
216
243
217
244
218
245
219
246
220
247
### 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 )
222
249
223
250
TYPO3 - Set up all extensions.
224
251
225
252
226
253
227
254
228
255
### 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 )
230
257
231
258
Deploys a TYPO3 project.
232
259
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
234
273
235
274
236
275
This task is group task which contains next tasks:
0 commit comments