-
Notifications
You must be signed in to change notification settings - Fork 34
/
addon.php
42 lines (36 loc) · 864 Bytes
/
addon.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
<?php
namespace Deployer;
/**
* Define your custom tasks as shown below.
*/
desc( 'Some task' );
task( 'some:task', function () {
// task code here.
} );
desc( 'Some other task' );
task( 'some:othertask', function () {
// task code here.
} );
/**
* Update the tasks variable and add your tasks in the order where they should be.
* You can also remove any tasks which you may not need.
*/
$tasks = [
'deploy:prepare',
'deploy:unlock',
'deploy:lock',
'deploy:release',
'rsync',
'wp:config',
'some:task', // Adding custom task in $tasks variable.
'some:othertask', // Adding custom task in $tasks variable.
'cachetool:download',
'deploy:shared',
'deploy:symlink',
'permissions:set',
'opcache:reset',
'core_db:update',
'deploy:unlock',
'cleanup',
];
// Stop editing now. The above given tasks will be run by deploy.php of this action now.