-
Notifications
You must be signed in to change notification settings - Fork 15
/
deploy-config.orig.php
134 lines (117 loc) · 4.79 KB
/
deploy-config.orig.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<?php
/*
* php-git-deploy configuration file
* PHP script for automatic code deployment directly from Github or Bitbucket to your server using webhooks
* Documentation: https://github.com/Lyquix/php-git-deploy
*/
/* DISABLED: Set to true to prevent the execution of this script. cript only when needed */
define('DISABLED', false);
/* IP_ALLOW:
* Array of IP addresses and ranges in CIDR notation that are allowed to execute
* the script. Supports IPv4 and IPv6. Leave array empty to allow all IPs.
* GitHub IP ranges are 192.30.252.0/22 and 2620:112:3000::/44
* (https://help.github.com/articles/github-s-ip-addresses/)
* BitBucket IP ranges are 104.192.143.192/28 and 2401:1d80:1010::/64
* (https://confluence.atlassian.com/bitbucket/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall-343343385.html)
*
*/
define('IP_ALLOW', serialize(array(
)));
/*
* REMOTE_REPOSITORY:
* Address of the remote Git repo. For private repos use the SSH address
* Examples:
* https://github.com/username/reponame.git
* [email protected]:username/reponame.git
*
*/
define('REMOTE_REPOSITORY', '');
/*
* BRANCH:
* Array of branch names allowed to deploy
* First name in array is considered the default branch and only one allowed for automatic deployments
*/
define('BRANCH', serialize(array(
'branch',
'mybranch',
'yourbranch'
)));
/*
* ACCESS_TOKEN:
* Secret code/password used to authorize execution of this script
* Script will not execute if left blank
* You must add this token to the deployment URL as the value of parameter t
* Example: http://domain.com/deploy.php?t=ACCESS_TOKEN
*/
define('ACCESS_TOKEN', '');
/* GIT_DIR: Directory where the repo will be cloned */
define('GIT_DIR', '/srv/www/domain.com/git/');
/* TARGET_DIR: Directory where the production files are located */
define('TARGET_DIR', '/srv/www/domain.com/public_html/');
/* LOG_FILE: Full path of log file. Leave blank to disable logging */
define('LOG_FILE', '/srv/www/domain.com/logs/deploy.log');
/* EMAIL_NOTIFICATIONS: Email address where notifications are sent. Leave blank to disable email notifications */
define('EMAIL_NOTIFICATIONS', '');
/* TIME_LIMIT: Time limit for each command */
define('TIME_LIMIT', 60);
/* EXCLUDE_FILES:
* Array of files excluded from rsync (they will appear in GIT_DIR, but not in TARGET_DIR)
* By default, only .git directory is excluded.
* It's recommended to leave '.git' excluded and add something more if needed.
* Example: define('EXCLUDE_FILES', serialize(array('.git', '.gitignore', '*.less', '*.scss')));
*
*/
define('EXCLUDE_FILES', serialize(array('.git')));
/* RSYNC_FLAGS:
* Custom flags to run rsync with
* Default: '-rltgoDzvO'
* -r recursive
* -l recreate symlinks at destination
* -t tranfer modification time
* -g preserve group ownership
* -o preserve owner
* -D transfer special files
* -z compress files during transfer
* -v verbose
* -O omit directories when preserving modification times
* Do not change them if not necessary
* Example: '-rltDzvO' (don't changes owner:group of copied files,
* useful for vhosts than require separate group for document_root to be accessible by webserver)
*/
define('RSYNC_FLAGS', '-rltgoDzvO');
/* COMMANDS_BEFORE_RSYNC:
* Run commands before running rsync. Default: empty array
* This commands will be run under GIT_DIR after checkout from remote repository
* Useful for running build tasks
* Example: define('COMMANDS_BEFORE_RSYNC', serialize(array('composer install')));
*/
define('COMMANDS_BEFORE_RSYNC', serialize(array()));
/* COMMANDS_AFTER_RSYNC:
* Run commands after running rsync. Default: empty array
* This commands will be run under TARGET_DIR after copying files from GIT_DIR
* Useful for doing some cleanups
* Example: define('COMMANDS_AFTER_RSYNC', serialize(array('rm cache/*.php -f')));
*/
define('COMMANDS_AFTER_RSYNC', serialize(array()));
/* CLEANUP_WORK_TREE:
* Clean GIT_DIR from leftovers after custom commands
* Set to true if you wish to clean up GIT_DIR after running all custom commands
* Useful if your custom commands create intermediate files you want not to keep between deployments
* However, intermediate files would not be cleaned up from TARGET_DIR
*/
define('CLEANUP_WORK_TREE', false);
/* CALLBACK_CLASSES:
* Classnames containing callback functions to
* be triggered at the end of the script on success or failure.
* Useful to connect to your preferred notification system.
* Note:
* - Classes must implement Plugin Interface
* - Class names have to match their file-name (case-sensitive), e.g. "Discord.class.php" has class "Discord"
* - The array keys contain only the class name, e.g. array("Discord")
*/
define('CALLBACK_CLASSES', array(
));
/* PLUGINS_FOLDER:
* Folder containing all webhook plugins/classes, default: 'plugins/'
*/
define('PLUGINS_FOLDER','plugins/');