@@ -29,19 +29,18 @@ You can read more about Deployer in [Getting Started](/docs/getting-started.md).
29
29
30
30
The [ deploy] ( #deploy ) task of ** Shopware** consists of:
31
31
* [ deploy: prepare ] ( /docs/recipe/common.md#deployprepare ) – Prepares a new release
32
- * [ deploy: info ] ( /docs/recipe/typo3 .md#deployinfo ) –
32
+ * [ deploy: info ] ( /docs/recipe/deploy/info .md#deployinfo ) – Displays info about deployment
33
33
* [ deploy: setup ] ( /docs/recipe/deploy/setup.md#deploysetup ) – Prepares host for deploy
34
34
* [ deploy: lock ] ( /docs/recipe/deploy/lock.md#deploylock ) – Locks deploy
35
35
* [ deploy: release ] ( /docs/recipe/deploy/release.md#deployrelease ) – Prepares release
36
- * [ deploy: update_code ] ( /docs/recipe/typo3 .md#deployupdate_code ) –
36
+ * [ deploy: update_code ] ( /docs/recipe/deploy/update_code .md#deployupdate_code ) – Updates code
37
37
* [ deploy: shared ] ( /docs/recipe/deploy/shared.md#deployshared ) – Creates symlinks for shared files and dirs
38
38
* [ deploy: writable ] ( /docs/recipe/deploy/writable.md#deploywritable ) – Makes writable dirs
39
39
* [ sw: deploy ] ( /docs/recipe/shopware.md#swdeploy ) –
40
40
* [ sw:database: migrate ] ( /docs/recipe/shopware.md#swdatabasemigrate ) –
41
41
* [ sw:plugin: refresh ] ( /docs/recipe/shopware.md#swpluginrefresh ) –
42
42
* [ sw:theme: refresh ] ( /docs/recipe/shopware.md#swthemerefresh ) –
43
43
* [ sw:scheduled-task: register ] ( /docs/recipe/shopware.md#swscheduled-taskregister ) –
44
- * [ sw:theme: compile ] ( /docs/recipe/shopware.md#swthemecompile ) –
45
44
* [ sw:cache: clear ] ( /docs/recipe/shopware.md#swcacheclear ) –
46
45
* [ sw:plugin:update: all ] ( /docs/recipe/shopware.md#swpluginupdateall ) –
47
46
* [ sw:cache: clear ] ( /docs/recipe/shopware.md#swcacheclear ) –
@@ -68,10 +67,13 @@ set('repository', 'git@github.com:shopware/production.git');
68
67
69
68
configure host:
70
69
host('SSH-HOSTNAME')
71
- ->setRemoteUser( 'SSH-USER')
70
+ ->set('remote_user', 'SSH-USER')
72
71
->set('deploy_path', '/var/www/shopware') // This is the path, where deployer will create its directory structure
73
- ->set('http_user', 'www-data') // Not needed, if the ` user ` is the same user, the webserver is running with
74
- ->set('writable_mode', 'chmod');
72
+ ->set('http_user', 'www-data') // Not needed, if the ` user ` is the same user, the webserver is running with
73
+ ->set('http_group', 'www-data')
74
+ ->set('writable_mode', 'chmod')
75
+ ->set('writable_recursive', true)
76
+ ->set('become', 'www-data'); // You might want to change user to execute remote tasks because of access rights of created cache files
75
77
76
78
::: note
77
79
Please remember that the installation must be modified so that it can be
@@ -81,7 +83,7 @@ Please remember that the installation must be modified so that it can be
81
83
82
84
## Configuration
83
85
### bin/console
84
- [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/shopware.php#L30 )
86
+ [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/shopware.php#L32 )
85
87
86
88
87
89
@@ -91,7 +93,7 @@ Please remember that the installation must be modified so that it can be
91
93
92
94
93
95
### default_timeout
94
- [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/shopware.php#L32 )
96
+ [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/shopware.php#L34 )
95
97
96
98
Overrides [ default_timeout] ( /docs/recipe/common.md#default_timeout ) from ` recipe/common.php ` .
97
99
@@ -214,43 +216,43 @@ This task remotely executes the `database:migrate` console command on the target
214
216
215
217
216
218
### sw:theme: compile
217
- [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/shopware.php#L100 )
218
-
219
+ [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/shopware.php#L102 )
219
220
220
221
221
222
223
+ This task is not used per default, but can be used, e.g. in combination with ` SHOPWARE_SKIP_THEME_COMPILE=1 ` ,
224
+ to build the theme remotely instead of locally.
222
225
223
226
224
227
### sw:plugin:update: all
225
- [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/shopware.php#L136 )
228
+ [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/shopware.php#L138 )
226
229
227
230
228
231
229
232
230
233
231
234
232
235
### sw:writable: jwt
233
- [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/shopware.php#L146 )
236
+ [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/shopware.php#L148 )
234
237
235
238
236
239
237
240
238
241
239
242
240
243
### sw: deploy
241
- [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/shopware.php#L154 )
242
-
244
+ [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/shopware.php#L155 )
243
245
244
246
245
247
248
+ Grouped SW deploy tasks.
246
249
247
250
248
251
This task is group task which contains next tasks:
249
252
* [ sw:database: migrate ] ( /docs/recipe/shopware.md#swdatabasemigrate )
250
253
* [ sw:plugin: refresh ] ( /docs/recipe/shopware.md#swpluginrefresh )
251
254
* [ sw:theme: refresh ] ( /docs/recipe/shopware.md#swthemerefresh )
252
255
* [ sw:scheduled-task: register ] ( /docs/recipe/shopware.md#swscheduled-taskregister )
253
- * [ sw:theme: compile ] ( /docs/recipe/shopware.md#swthemecompile )
254
256
* [ sw:cache: clear ] ( /docs/recipe/shopware.md#swcacheclear )
255
257
* [ sw:plugin:update: all ] ( /docs/recipe/shopware.md#swpluginupdateall )
256
258
* [ sw:cache: clear ] ( /docs/recipe/shopware.md#swcacheclear )
@@ -290,7 +292,7 @@ This task is group task which contains next tasks:
290
292
291
293
292
294
### sw-build-without-db
293
- [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/shopware.php#L193 )
295
+ [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/shopware.php#L192 )
294
296
295
297
296
298
0 commit comments