mirror of
https://github.com/coollabsio/coolify.git
synced 2026-08-24 10:05:47 -05:00
fix(resources): clarify build server hosting restrictions (#10961)
This commit is contained in:
@@ -220,6 +220,7 @@ function clone_application(Application $source, $destination, array $overrides =
|
||||
'fqdn' => $url,
|
||||
'status' => 'exited',
|
||||
'destination_id' => $destination->id,
|
||||
'destination_type' => $destination->getMorphClass(),
|
||||
], $overrides));
|
||||
$newApplication->save();
|
||||
|
||||
|
||||
@@ -535,6 +535,17 @@ function find_destination_for_current_team(?string $uuid): StandaloneDocker|Swar
|
||||
?? SwarmDocker::ownedByCurrentTeam()->where('uuid', $uuid)->first();
|
||||
}
|
||||
|
||||
function find_resource_destination_for_current_team(?string $uuid): StandaloneDocker|SwarmDocker|null
|
||||
{
|
||||
$destination = find_destination_for_current_team($uuid);
|
||||
|
||||
if (! $destination?->server?->canHostResources()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $destination;
|
||||
}
|
||||
|
||||
function showBoarding(): bool
|
||||
{
|
||||
if (isDev()) {
|
||||
|
||||
Reference in New Issue
Block a user