-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathset.php
More file actions
87 lines (70 loc) · 2 KB
/
Copy pathset.php
File metadata and controls
87 lines (70 loc) · 2 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
<?php
namespace Deployer;
/**
* Default configuration for symfony application
*/
set('app_type', 'symfony');
set('web_path', 'public/');
set('debug_log_path', 'var/log');
set('debug_log_regex_pattern', '/^\[(.*?)\]\s(\w+)\s:\s(.+?)\s{.*?}$/');
set('default_timeout', 900);
set('keep_releases', 2);
set('shared_dirs', [
'var/log'
]
);
set('shared_files', [
'.env.local'
]
);
set('writable_dirs', [
'var',
'public/upload'
]);
set('writable_mode', 'chmod');
set('writable_chmod_mode', '2770');
set('writable_recursive', false);
set('writable_chmod_mode_files', '644');
set('writable_chmod_mode_dirs', '2755');
set('writable_chmod_mode_writable_dirs', '2775');
set('bin/console', function () {
$activePath = get('deploy_path') . '/' . (test('[ -L {{deploy_path}}/release ]') ? 'release' : 'current');
return parse("$activePath/bin/console");
});
set('console_options', function () {
return '--no-interaction';
});
set('composer_options', function () {
return '--verbose --prefer-dist --no-progress --no-interaction --no-dev --optimize-autoloader --no-scripts';
});
set('run_real_time_output', true);
set('clear_paths', [
'.git',
'.gitignore',
'.gitattributes',
]);
// Look on https://github.com/sourcebroker/deployer-extended#buffer-start for docs
set('buffer_config', function () {
return [
'index.php' => [
'entrypoint_filename' => get('web_path') . 'index.php',
],
];
});
// Look https://github.com/sourcebroker/deployer-extended-media for docs
set('media',
[
'filter' => [
'+ /public/',
'+ /public/media/',
'+ /public/media/**',
'+ /public/upload/',
'+ /public/upload/**',
'- *'
]
]);
set('feature_index_app_type', 'symfony');
// Prod deployment, add backup
task('database:backup')->select('prod');
before('deploy:database:update', 'database:backup');
set('sync_database_backup_config', './.deployment/db-sync-tool/backup-prod.yaml');