-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathset.php
More file actions
133 lines (114 loc) · 3.41 KB
/
Copy pathset.php
File metadata and controls
133 lines (114 loc) · 3.41 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<?php
declare(strict_types=1);
namespace Deployer;
// Accumulator
set('requirements_rows', []);
// Enable/disable per check category
set('requirements_check_locales_enabled', true);
set('requirements_check_packages_enabled', true);
set('requirements_check_image_processing_enabled', true);
set('requirements_check_media_support_enabled', true);
set('requirements_check_php_extensions_enabled', true);
set('requirements_check_php_settings_enabled', true);
set('requirements_check_database_enabled', true);
set('requirements_check_user_enabled', true);
set('requirements_check_env_enabled', true);
set('requirements_check_eol_enabled', true);
set('requirements_check_database_grants_enabled', true);
set('requirements_check_health_enabled', true);
// Locales
set('requirements_locales', ['de_DE.utf8', 'en_US.utf8']);
// System packages (display name => CLI command)
set('requirements_packages', [
'rsync' => 'rsync',
'curl' => 'curl',
'ghostscript' => 'gs',
'git' => 'git',
'gzip' => 'gzip',
'mariadb-client' => 'mysql',
'unzip' => 'unzip',
'patch' => 'patch',
'exiftool' => 'exiftool',
'composer' => 'composer',
]);
// PHP minimum version (framework-aware)
set('requirements_php_min_version', function (): string {
if (has('app_type') && get('app_type') === 'typo3') {
return '8.2.0';
}
return '8.1.0';
});
// PHP extensions (framework-aware)
set('requirements_php_extensions', function (): array {
if (has('app_type') && get('app_type') === 'typo3') {
return [
'pdo',
'session',
'xml',
'filter',
'tokenizer',
'mbstring',
'intl',
'pdo_mysql',
'fileinfo',
'gd',
'zip',
'openssl',
'curl',
'apcu',
];
}
return [
'pdo',
'session',
'xml',
'filter',
'tokenizer',
'mbstring',
'intl',
'pdo_mysql',
'curl',
'gd',
'zip',
];
});
// PHP settings
set('requirements_php_settings', [
'max_execution_time' => '240',
'memory_limit' => '512M',
'max_input_vars' => '1500',
'pcre.jit' => '1',
'date.timezone' => 'Europe/Berlin',
'post_max_size' => '31M',
'upload_max_filesize' => '30M',
'opcache.memory_consumption' => '256',
]);
// Database
set('requirements_mariadb_min_version', '10.4.3');
set('requirements_mysql_min_version', '8.0.17');
// Image processing
set('requirements_graphicsmagick_min_version', '1.3');
set('requirements_imagemagick_min_version', '6.0');
// Composer
set('requirements_composer_min_version', '2.1.0');
// End-of-life check (endoflife.date API)
set('requirements_eol_warn_months', 6);
set('requirements_eol_api_timeout', 5);
// Health check
set('requirements_health_url', 'http://localhost');
// User / permissions
set('requirements_user_group', 'www-data');
set('requirements_deploy_path_permissions', '2770');
// Env file
set('requirements_env_file', '.env');
set('requirements_env_vars', function (): array {
if (has('app_type') && get('app_type') === 'typo3') {
return [
'TYPO3_CONF_VARS__DB__Connections__Default__host',
'TYPO3_CONF_VARS__DB__Connections__Default__dbname',
'TYPO3_CONF_VARS__DB__Connections__Default__user',
'TYPO3_CONF_VARS__DB__Connections__Default__password',
];
}
return [];
});