mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-05-06 15:56:40 +02:00
commit
ca808e4853
|
@ -41,8 +41,10 @@ class ReleaseTask extends AbstractTask implements ExecuteOnRollbackInterface
|
||||||
|
|
||||||
$hostPath = rtrim($this->runtime->getEnvOption('host_path'), '/');
|
$hostPath = rtrim($this->runtime->getEnvOption('host_path'), '/');
|
||||||
$releaseId = $this->runtime->getReleaseId();
|
$releaseId = $this->runtime->getReleaseId();
|
||||||
|
|
||||||
|
$symlink = $this->runtime->getEnvOption('symlink', 'current');
|
||||||
|
|
||||||
$cmdLinkRelease = sprintf('cd %s && ln -snf releases/%s current', $hostPath, $releaseId);
|
$cmdLinkRelease = sprintf('cd %s && ln -snf releases/%s %s', $hostPath, $releaseId, $symlink);
|
||||||
|
|
||||||
/** @var Process $process */
|
/** @var Process $process */
|
||||||
$process = $this->runtime->runRemoteCommand($cmdLinkRelease, false, 0);
|
$process = $this->runtime->runRemoteCommand($cmdLinkRelease, false, 0);
|
||||||
|
|
Loading…
Reference in a new issue