forked from yidas/deployer-php-cli
-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.inc.php
72 lines (70 loc) · 1.96 KB
/
config.inc.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
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
<?php
/**
* @see https://github.com/yidas/deployer-php-cli
*/
return [
// This project config processes deployment only for simple usage
'default' => [
'servers' => [
'127.0.0.1',
],
'source' => '/home/user/project',
'destination' => '/var/www/html/prod/',
],
// This project config processes Git and Composer before deployment
'advanced' => [
'servers' => [
'127.0.0.1',
],
'user' => [
'local' => '',
'remote' => '',
],
'source' => '/home/user/project-advanced',
'destination' => '/var/www/html/prod/',
'exclude' => [
'.git',
'tmp/*',
],
'git' => [
'enabled' => true,
'path' => './',
'checkout' => true,
'branch' => 'master',
'submodule' => false,
],
'composer' => [
'enabled' => true,
'path' => './',
// 'path' => ['./', './application/'],
'command' => 'composer -n install',
],
'test' => [
'enabled' => false,
'name' => 'PHPUnit',
'type' => 'phpunit',
// CodeIgniter 3 for example (https://github.com/yidas/codeigniter-phpunit)
'command' => './application/vendor/bin/phpunit',
'configuration' => './application/phpunit.xml',
],
'rsync' => [
'enabled' => true,
'params' => '-av --delete',
// 'sleepSeconds' => 0,
// 'timeout' => 60,
// 'identityFile' => '/home/deployer/.ssh/id_rsa',
],
'commands' => [
'before' => [
'',
],
],
'webhook' => [
'enabled' => false,
'provider' => 'gitlab',
'project' => 'yidas/deployer-php-cli',
'token' => 'thisistoken',
],
'verbose' => false,
],
];