This commit is contained in:
parent
cb4939bd85
commit
4bf0855964
1 changed files with 9 additions and 1 deletions
|
|
@ -21,6 +21,15 @@ require 'recipe/common.php';
|
||||||
require 'contrib/rsync.php';
|
require 'contrib/rsync.php';
|
||||||
require 'contrib/cachetool.php';
|
require 'contrib/cachetool.php';
|
||||||
|
|
||||||
|
set('release_or_current_path', function () {
|
||||||
|
$releaseExists = test('[ -h {{deploy_path}}/release ]');
|
||||||
|
if ($releaseExists) {
|
||||||
|
$link = run("readlink {{deploy_path}}/release");
|
||||||
|
return substr($link, 0, 1) === '/' ? $link : get('deploy_path') . '/' . $link;
|
||||||
|
}
|
||||||
|
return get('current_path');
|
||||||
|
});
|
||||||
|
|
||||||
// =============================================================================
|
// =============================================================================
|
||||||
// PHP Configuration
|
// PHP Configuration
|
||||||
// =============================================================================
|
// =============================================================================
|
||||||
|
|
@ -52,7 +61,6 @@ set('writable_dirs', [
|
||||||
// =============================================================================
|
// =============================================================================
|
||||||
|
|
||||||
set('rsync_src', '../');
|
set('rsync_src', '../');
|
||||||
|
|
||||||
set('rsync', [
|
set('rsync', [
|
||||||
'exclude' => [
|
'exclude' => [
|
||||||
// Shared (will be symlinked)
|
// Shared (will be symlinked)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue