refactor: Add localhost as Server if it doesn't exist and not in cloud environment
This commit is contained in:
parent
aa28c99827
commit
d006edc485
1 changed files with 2 additions and 2 deletions
|
|
@ -65,7 +65,7 @@ public function run(): void
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
// Add Coolify host (localhost) as Server if it doesn't exist
|
// Add Coolify host (localhost) as Server if it doesn't exist
|
||||||
if (Server::find(0) == null) {
|
if (Server::find(0) == null && ! isCloud()) {
|
||||||
$server_details = [
|
$server_details = [
|
||||||
'id' => 0,
|
'id' => 0,
|
||||||
'name' => 'localhost',
|
'name' => 'localhost',
|
||||||
|
|
@ -89,7 +89,7 @@ public function run(): void
|
||||||
$server->settings->is_usable = true;
|
$server->settings->is_usable = true;
|
||||||
$server->settings->save();
|
$server->settings->save();
|
||||||
}
|
}
|
||||||
if (StandaloneDocker::find(0) == null) {
|
if (StandaloneDocker::find(0) == null && ! isCloud()) {
|
||||||
StandaloneDocker::create([
|
StandaloneDocker::create([
|
||||||
'id' => 0,
|
'id' => 0,
|
||||||
'name' => 'localhost-coolify',
|
'name' => 'localhost-coolify',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue