mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-06-19 22:15:05 +02:00
Tweaks.
This commit is contained in:
parent
7e2d7d4e57
commit
846237fabb
|
@ -61,8 +61,8 @@ class RsyncTask extends BaseStrategyTaskAbstract implements IsReleaseAware
|
||||||
|
|
||||||
$currentRelease = false;
|
$currentRelease = false;
|
||||||
$deployToDirectory = rtrim($this->getConfig()->deployment('to'), '/')
|
$deployToDirectory = rtrim($this->getConfig()->deployment('to'), '/')
|
||||||
. '/' . $releasesDirectory
|
. '/' . $releasesDirectory
|
||||||
. '/' . $this->getConfig()->getReleaseId();
|
. '/' . $this->getConfig()->getReleaseId();
|
||||||
|
|
||||||
Console::log('Deploy to ' . $deployToDirectory);
|
Console::log('Deploy to ' . $deployToDirectory);
|
||||||
$resultFetch = $this->runCommandRemote('ls -ld ' . $symlink . ' | cut -d"/" -f2', $currentRelease);
|
$resultFetch = $this->runCommandRemote('ls -ld ' . $symlink . ' | cut -d"/" -f2', $currentRelease);
|
||||||
|
@ -84,10 +84,10 @@ class RsyncTask extends BaseStrategyTaskAbstract implements IsReleaseAware
|
||||||
}
|
}
|
||||||
|
|
||||||
$command = 'rsync -avz '
|
$command = 'rsync -avz '
|
||||||
. '--rsh="ssh ' . $this->getConfig()->getHostIdentityFileOption() . '-p' . $this->getConfig()->getHostPort() . '" '
|
. '--rsh="ssh ' . $this->getConfig()->getHostIdentityFileOption() . '-p' . $this->getConfig()->getHostPort() . '" '
|
||||||
. $this->excludes($excludes) . ' '
|
. $this->excludes($excludes) . ' '
|
||||||
. $this->getConfig()->deployment('from') . ' '
|
. $this->getConfig()->deployment('from') . ' '
|
||||||
. $this->getConfig()->deployment('user') . '@' . $this->getConfig()->getHostName() . ':' . $deployToDirectory;
|
. $this->getConfig()->deployment('user') . '@' . $this->getConfig()->getHostName() . ':' . $deployToDirectory;
|
||||||
|
|
||||||
$result = $this->runCommandLocal($command);
|
$result = $this->runCommandLocal($command);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue