-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathconfig.source.php
More file actions
44 lines (31 loc) · 919 Bytes
/
config.source.php
File metadata and controls
44 lines (31 loc) · 919 Bytes
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
<?php
declare(strict_types=1);
use ImagickDemo\Config;
$sha = `git rev-parse HEAD`;
if ($sha === null) {
echo "Failed to read sha from git. Is git installed in container?";
exit(-1);
}
$sha = trim($sha);
$default = [
'opcache.enabled' => '1',
'script.version' => '100917010607',
'script.packing' => true,
'caching.setting' => 'caching.time',
'jig.compilecheck' => 'COMPILE_CHECK_EXISTS',
'system.build_debug_php_containers' => false,
Config::IMAGICKDEMOS_COMMIT_SHA => $sha,
Config::IMAGICKDEMOS_DEPLOY_TIME => (new DateTime())->format('Y_m_d_H_i_s')
];
$local = [
'opcache.enabled' => '0',
'caching.setting' => 'caching.time',
'system.build_debug_php_containers' => true,
Config::IMAGICKDEMOS_ENVIRONMENT => 'local'
];
$prod = [
Config::IMAGICKDEMOS_ENVIRONMENT => 'prod',
];
//$varnish_debug = [
// 'varnish.pass_all_requests' => false
//];