summaryrefslogtreecommitdiff
path: root/deploy.php
blob: 56e95cad333cf307ef5de454fe25cce7f466dd65 (plain)
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
<?php
namespace Deployer;

require 'recipe/common.php';

set('application', 'todo.davidtsadler.com');

set('repository', 'git@git.davidtsadler.com:todo.davidtsadler.com.git');

set('shared_files', [
    'config.php',
    'urls',
]);

set('shared_dirs', []);

set('writable_dirs', []);

set('allow_anonymous_stats', false);

host('davidtsadler.com')
    ->set('deploy_path', '/var/www/{{application}}');

task('deploy', [
    'deploy:info',
    'deploy:prepare',
    'deploy:lock',
    'deploy:release',
    'deploy:update_code',
    'deploy:shared',
    'deploy:writable',
    'deploy:clear_paths',
    'deploy:symlink',
    'deploy:unlock',
    'cleanup',
    'success'
]);

after('deploy:failed', 'deploy:unlock');