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); }