mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-06-08 08:42:14 +02:00
commit
ca808e4853
|
@ -42,7 +42,9 @@ 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();
|
||||||
|
|
||||||
$cmdLinkRelease = sprintf('cd %s && ln -snf releases/%s current', $hostPath, $releaseId);
|
$symlink = $this->runtime->getEnvOption('symlink', 'current');
|
||||||
|
|
||||||
|
$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