From 8cab1f951fa1dee65dc79ea2b84828c1dbc7163b Mon Sep 17 00:00:00 2001 From: DNickolay Date: Fri, 12 Jan 2024 07:13:17 +0300 Subject: [PATCH] fix version for out --- app/src/Deploy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/Deploy.php b/app/src/Deploy.php index f486b3265..753b46935 100644 --- a/app/src/Deploy.php +++ b/app/src/Deploy.php @@ -118,7 +118,7 @@ private function actualizeGitEnv(): bool $pathToEnv = $this->getAbsolutePath(0, $this::ENV_GIT_FILE); $appVersion = "echo 'APP_VERSION='$(git log -1 --format='%H') > $pathToEnv"; $comment = "echo \"COMMENT='\"$(git log -1 --format='%s')\"'\" >> $pathToEnv"; - $command = "$appVersion && $comment"; + $command = "cd {$this->getAbsolutePath(0)} && $appVersion && $comment"; return false !== $this->doCommand($command); }