-
Notifications
You must be signed in to change notification settings - Fork 2
/
set.php
84 lines (70 loc) · 2.06 KB
/
set.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?php
namespace Deployer;
// webserver user
set('http_user', 'www-data');
// remote permissions
set('writable_mode', 'chmod');
set('writable_chmod_recursive', false);
set('writable_chmod_mode', '2770');
// local host is always needed
host('local')->set('deploy_path', getcwd());
// read typo3 database connection from bin/typo3cms > AdditionalConfiguration.php > .env
set('driver_typo3cms', true);
// set writable dirs
set('writable_dirs', function () {
return [
get('web_path') . 'typo3conf',
get('web_path') . 'typo3temp',
get('web_path') . 'typo3temp/assets',
get('web_path') . 'typo3temp/assets/images',
get('web_path') . 'typo3temp/assets/_processed_',
get('web_path') . 'uploads',
get('web_path') . 'fileadmin',
get('web_path') . '../var',
get('web_path') . '../var/log',
get('web_path') . '../var/transient',
get('web_path') . 'fileadmin/_processed_',
];
});
// set shared dirs
set('shared_dirs', function () {
return [
'public/fileadmin',
'public/uploads',
'public/typo3temp/assets',
'var/log',
'var/transient',
'var/goaccess',
];
});
// add additional shared files
set('shared_files', [
...get('shared_files'),
'.env.local',
]);
// set log files dir
set('log_files', 'var/log/*.log');
// use curl instead of wget
set('fetch_method', 'curl');
// keep permissions from source system
set('media_custom', [
'flags' => 'rzp',
],
);
// disable composer version check
set('composer_channel_autoupdate', false);
// disable plattform requirement check (fails in pipeline)
set('check_composer_install_options', '--verbose --prefer-dist --no-progress --no-interaction --optimize-autoloader --ignore-platform-reqs');
// files to upload in non-git deployment
set('upload_paths', [
'composer.json',
'composer.lock',
'deploy.php',
'config',
'packages',
'patches',
'public/.htaccess',
'public/typo3conf/LocalConfiguration.php',
'public/typo3conf/AdditionalConfiguration.php',
'var/labels',
]);