refactor: Disable health check for Rust applications during deployment

This commit is contained in:
Andras Bacsai 2024-07-19 15:40:33 +02:00
parent 14b2442d40
commit 526d675272

View File

@ -1448,6 +1448,11 @@ private function generate_nixpacks_confs()
} }
$this->nixpacks_plan = json_encode($parsed, JSON_PRETTY_PRINT); $this->nixpacks_plan = json_encode($parsed, JSON_PRETTY_PRINT);
$this->application_deployment_queue->addLogEntry("Final Nixpacks plan: {$this->nixpacks_plan}", hidden: true); $this->application_deployment_queue->addLogEntry("Final Nixpacks plan: {$this->nixpacks_plan}", hidden: true);
if ($this->nixpacks_type === 'rust') {
// temporary: disable healthcheck for rust because the start phase does not have curl/wget
$this->application->health_check_enabled = false;
$this->application->save();
}
} }
} }
} }