mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-13 16:14:42 +00:00
feat(core): prevent using servers with existing resources as build servers
This commit is contained in:
1 parent
372b064dba
commit
65b925252c
3 files changed
+22
-1
No files matched your search
@@ -1341,4 +1341,11 @@ $schema://$host {
|
||||
throw new \Exception('Invalid proxy type.');
|
||||
}
|
||||
}
|
||||
|
||||
public function isEmpty()
|
||||
{
|
||||
return $this->applications()->count() == 0 &&
|
||||
$this->databases()->count() == 0 &&
|
||||
$this->services()->count() == 0;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user