|
8 | 8 | /* DISABLED: Set to true to prevent the execution of this script. cript only when needed */
|
9 | 9 | define('DISABLED', false);
|
10 | 10 |
|
11 | | -/* IP_ALLOW: |
| 11 | +/* IP_ALLOW: |
12 | 12 | * Array of IP addresses and ranges in CIDR notation that are allowed to execute
|
13 | 13 | * the script. Supports IPv4 and IPv6. Leave array empty to allow all IPs.
|
14 | 14 | * GitHub IP ranges are 192.30.252.0/22 and 2620:112:3000::/44
|
15 | 15 | * (https://help.github.com/articles/github-s-ip-addresses/)
|
16 | | - * BitBucket IP ranges are 104.192.143.192/28 and 2401:1d80:1010::/64 |
| 16 | + * BitBucket IP ranges are 104.192.143.192/28 and 2401:1d80:1010::/64 |
17 | 17 | * (https://confluence.atlassian.com/bitbucket/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall-343343385.html)
|
18 | 18 | *
|
19 | 19 | */
|
|
22 | 22 |
|
23 | 23 | /*
|
24 | 24 | * REMOTE_REPOSITORY:
|
25 | | - * Address of the remote Git repo. For private repos use the SSH address |
26 | | - * Examples: |
| 25 | + * Address of the remote Git repo. For private repos use the SSH address |
| 26 | + * Examples: |
27 | 27 | * https://github.com/username/reponame.git
|
28 | 28 | * git@bitbucket.org:username/reponame.git
|
29 | | - * |
| 29 | + * |
30 | 30 | */
|
31 | 31 | define('REMOTE_REPOSITORY', '');
|
32 | 32 |
|
33 | | -/* |
| 33 | +/* |
34 | 34 | * BRANCH:
|
35 | | - * Array of branch names allowed to deploy |
| 35 | + * Array of branch names allowed to deploy |
36 | 36 | * First name in array is considered the default branch and only one allowed for automatic deployments
|
37 | 37 | */
|
38 | 38 | define('BRANCH', serialize(array(
|
|
43 | 43 |
|
44 | 44 | /*
|
45 | 45 | * ACCESS_TOKEN:
|
46 | | - * Secret code/password used to authorize execution of this script |
| 46 | + * Secret code/password used to authorize execution of this script |
47 | 47 | * Script will not execute if left blank
|
48 | 48 | * You must add this token to the deployment URL as the value of parameter t
|
49 | 49 | * Example: http://domain.com/deploy.php?t=ACCESS_TOKEN
|
|
65 | 65 | /* TIME_LIMIT: Time limit for each command */
|
66 | 66 | define('TIME_LIMIT', 60);
|
67 | 67 |
|
68 | | -/* EXCLUDE_FILES: |
| 68 | +/* EXCLUDE_FILES: |
69 | 69 | * Array of files excluded from rsync (they will appear in GIT_DIR, but not in TARGET_DIR)
|
70 | | - * By default, only .git directory is excluded. |
| 70 | + * By default, only .git directory is excluded. |
71 | 71 | * It's recommended to leave '.git' excluded and add something more if needed.
|
72 | 72 | * Example: define('EXCLUDE_FILES', serialize(array('.git', '.gitignore', '*.less', '*.scss')));
|
73 | 73 | *
|
74 | 74 | */
|
75 | 75 | define('EXCLUDE_FILES', serialize(array('.git')));
|
76 | 76 |
|
77 | | -/* RSYNC_FLAGS: |
| 77 | +/* RSYNC_FLAGS: |
78 | 78 | * Custom flags to run rsync with
|
79 | 79 | * Default: '-rltgoDzvO'
|
80 | 80 | * -r recursive
|
|
103 | 103 | /* COMMANDS_AFTER_RSYNC:
|
104 | 104 | * Run commands after running rsync. Default: empty array
|
105 | 105 | * This commands will be run under TARGET_DIR after copying files from GIT_DIR
|
106 | | - * Useful for doing some cleanups |
| 106 | + * Useful for doing some cleanups |
107 | 107 | * Example: define('COMMANDS_AFTER_RSYNC', serialize(array('rm cache/*.php -f')));
|
108 | 108 | */
|
109 | 109 | define('COMMANDS_AFTER_RSYNC', serialize(array()));
|
|
0 commit comments