disable hc by default for some build packs
This commit is contained in:
parent
2644efd9f7
commit
d400ac57d5
@ -170,7 +170,6 @@ public function submit()
|
||||
'name' => generate_random_name(),
|
||||
'git_repository' => $this->git_repository,
|
||||
'git_branch' => $this->git_branch,
|
||||
'build_pack' => 'nixpacks',
|
||||
'ports_exposes' => $this->port,
|
||||
'publish_directory' => $this->publish_directory,
|
||||
'environment_id' => $environment->id,
|
||||
@ -183,7 +182,6 @@ public function submit()
|
||||
'name' => generate_application_name($this->git_repository, $this->git_branch),
|
||||
'git_repository' => $this->git_repository,
|
||||
'git_branch' => $this->git_branch,
|
||||
'build_pack' => 'nixpacks',
|
||||
'ports_exposes' => $this->port,
|
||||
'publish_directory' => $this->publish_directory,
|
||||
'environment_id' => $environment->id,
|
||||
@ -194,7 +192,9 @@ public function submit()
|
||||
'build_pack' => $this->build_pack,
|
||||
];
|
||||
}
|
||||
|
||||
if ($this->build_pack === 'dockerfile' || $this->build_pack === 'dockerimage' || $this->application->dockerfile) {
|
||||
$application_init['health_check_enabled'] = false;
|
||||
}
|
||||
|
||||
$application = Application::create($application_init);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user