-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.php
More file actions
81 lines (55 loc) · 1.79 KB
/
Copy pathdeploy.php
File metadata and controls
81 lines (55 loc) · 1.79 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
<?php
namespace Deployer;
// Reuse https://github.com/sourcebroker/deployer-extended-symfony/blob/main/deployer/deploy/task/deploy.php
task('deploy', [
// Standard deployer task.
'deploy:info',
// Standard deployer task.
'deploy:setup',
// Read more on https://github.com/sourcebroker/deployer-extended#deploy-check-lock
'deploy:check_lock',
// Standard deployer task.
'deploy:lock',
// Standard deployer task.
'deploy:release',
// Building assets
'build:assets',
// Transfer application to remote
'rsync',
// Standard deployer task.
'deploy:shared',
// Standard deployer task.
'deploy:writable',
// Standard deployer task.
'deploy:clear_paths',
// Special for symfony
'deploy:database:update',
// Special for symfony
'deploy:ckeditor:install',
// Special for symfony
'deploy:assets:install',
// Special for symfony
'deploy:cache:clear',
// Special for symfony
'deploy:cache:warmup',
// Adjust permissions
'deploy:writable:chmod',
// Truncate caching tables, all cf_* tables
// Read more on https://github.com/sourcebroker/deployer-extended-database#db-truncate
// 'db:truncate',
// Standard deployer task.
'deploy:symlink',
// Clear php cli cache.
// Read more on https://github.com/sourcebroker/deployer-extended#cache-clear-php-cli
'cache:clear_php_cli',
// Clear frontend http cache.
// Read more on https://github.com/sourcebroker/deployer-extended#cache-clear-php-http
'cache:clear_php_http',
// Standard deployer task.
'deploy:unlock',
// Standard deployer task.
'deploy:cleanup',
// Standard deployer task.
'deploy:success',
])->desc('Deploy your Symfony5 project');
after('deploy:failed', 'deploy:unlock');