We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56d4f75 commit 3bf36bdCopy full SHA for 3bf36bd
module/DeployAgent/src/Task/TaskManager.php
@@ -290,11 +290,16 @@ public function activate(EventInterface $event)
290
$message = 'Starting ' . $application->getName() . ' (' . $build . ')';
291
$this->getLogger()->info($message);
292
293
+ $pwd = getcwd();
294
+ chdir($application->getPath() . DIRECTORY_SEPARATOR);
295
+
296
symlink(
- $application->getPath() . DIRECTORY_SEPARATOR . $build,
- $application->getPath() . DIRECTORY_SEPARATOR . 'current'
297
+ $build,
298
+ 'current'
299
);
300
301
+ chdir($pwd);
302
303
$application->getEventManager()->trigger($application::EVENT_AFTER_ACTIVATE);
304
305
$message = $application->getName() . ' (' . $build . ') has successfully started';
0 commit comments