Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions app/Commands/DeployCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ protected function deploy($serverId, $siteId, $domain, $data, $isScheduled = fal
exit();
}

$this->info(Arr::first($deploying['data'])['message']);
$firstValue = Arr::first($deploying['data']);
$this->info(is_array($firstValue) ? $firstValue['message'] : $firstValue);

if ($isScheduled) {
return;
Expand Down Expand Up @@ -186,7 +187,7 @@ private function getLatestDeploymentId(int $serverId, int $siteId): ?int
try {
$deployment = $poller->getLatestDeployment($serverId, $siteId);

return $deployment['id'] ?? null;
return isset($deployment['id']) ? (int) $deployment['id'] : null;
} catch (Exception $e) {
$this->error('Failed to get latest deployment: '.$e->getMessage());

Expand Down