mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-20 18:23:40 +00:00
feat(servers): add cross-instance server migration (#11075)
This commit is contained in:
@@ -53,6 +53,21 @@ class ValidateAndInstall extends Component
|
||||
|
||||
public function init(int $data = 0)
|
||||
{
|
||||
if (! $this->server->canBeValidated()) {
|
||||
$this->error = 'This server was transferred to another Coolify instance and cannot be revalidated here.';
|
||||
$this->server->update([
|
||||
'validation_logs' => $this->error,
|
||||
'is_validating' => false,
|
||||
]);
|
||||
$this->dispatch(
|
||||
'error',
|
||||
'Cannot revalidate',
|
||||
$this->error
|
||||
);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
$this->isInstalling = false;
|
||||
$this->uptime = null;
|
||||
$this->supported_os_type = null;
|
||||
|
||||
Reference in New Issue
Block a user