- Added github support.
- Respository folders creating as
{REPO_TYPE}-{OWNER}-{REPO_NAME}.git
(in folder specified by$CONFIG['repositoriesPath']
-- see config).REPO_TYPE
can be 'bitbucket' or 'github'. bitbucket-hook.php
renamed towebhook.php
. Createdbitbucket-hook.php
stub (just includeswebhook.php
) for compatibility with previous versions.- Github repository name changed to
automatic-webhook-deploy
.
- Using config repository key (in form
username/repo-name
) as repository folder name (underrepositoriesPath
). Thus, we have a two-level structure of repository folders storage.
- Escaping potential spaces in file names.
- Added config option
setTimezone
for misconfigured php server. - Verbose exec errors (show error messages in log).
- Ensuring folder modes after
mkdir
(callingchmod
). In some cases mkdir makes default modes. - More informative log messages.
- New config parameters:
logDebug
,logPayload
.
- Added project parameter for post deploy execution:
$PROJECTS['repo-name']['postHookCmd']
(see config.sample.php). For example, touch index.wsgi for django configuration reloading:... 'postHookCmd' => 'touch index.wsgi', ...
. Command running in project folder (specified bydeployPath
parameter.