mirror of
https://github.com/cupcakearmy/coolify.git
synced 2024-10-23 00:24:15 +02:00
empty nixpacks type result in error
This commit is contained in:
parent
a42c8da344
commit
2b1e35980f
@ -265,13 +265,13 @@ public function handle(): void
|
|||||||
} else {
|
} else {
|
||||||
$this->write_deployment_configurations();
|
$this->write_deployment_configurations();
|
||||||
}
|
}
|
||||||
$this->execute_remote_command(
|
// $this->execute_remote_command(
|
||||||
[
|
// [
|
||||||
"docker rm -f {$this->deployment_uuid} >/dev/null 2>&1",
|
// "docker rm -f {$this->deployment_uuid} >/dev/null 2>&1",
|
||||||
"hidden" => true,
|
// "hidden" => true,
|
||||||
"ignore_errors" => true,
|
// "ignore_errors" => true,
|
||||||
]
|
// ]
|
||||||
);
|
// );
|
||||||
$this->execute_remote_command(
|
$this->execute_remote_command(
|
||||||
[
|
[
|
||||||
"docker image prune -f >/dev/null 2>&1",
|
"docker image prune -f >/dev/null 2>&1",
|
||||||
@ -889,6 +889,9 @@ private function generate_nixpacks_confs()
|
|||||||
);
|
);
|
||||||
if ($this->saved_outputs->get('nixpacks_type')) {
|
if ($this->saved_outputs->get('nixpacks_type')) {
|
||||||
$this->nixpacks_type = $this->saved_outputs->get('nixpacks_type');
|
$this->nixpacks_type = $this->saved_outputs->get('nixpacks_type');
|
||||||
|
if (str($this->nixpacks_type)->isEmpty()) {
|
||||||
|
throw new RuntimeException('Nixpacks failed to detect the application type. Please check the documentation of Nixpacks: https://nixpacks.com/docs/providers');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if ($this->saved_outputs->get('nixpacks_plan')) {
|
if ($this->saved_outputs->get('nixpacks_plan')) {
|
||||||
$this->nixpacks_plan = $this->saved_outputs->get('nixpacks_plan');
|
$this->nixpacks_plan = $this->saved_outputs->get('nixpacks_plan');
|
||||||
|
Loading…
Reference in New Issue
Block a user