Skip to content

Commit d006edc

Browse files
committed
refactor: Add localhost as Server if it doesn't exist and not in cloud environment
1 parent aa28c99 commit d006edc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

database/seeders/ProductionSeeder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function run(): void
6565
]);
6666
}
6767
// Add Coolify host (localhost) as Server if it doesn't exist
68-
if (Server::find(0) == null) {
68+
if (Server::find(0) == null && ! isCloud()) {
6969
$server_details = [
7070
'id' => 0,
7171
'name' => 'localhost',
@@ -89,7 +89,7 @@ public function run(): void
8989
$server->settings->is_usable = true;
9090
$server->settings->save();
9191
}
92-
if (StandaloneDocker::find(0) == null) {
92+
if (StandaloneDocker::find(0) == null && ! isCloud()) {
9393
StandaloneDocker::create([
9494
'id' => 0,
9595
'name' => 'localhost-coolify',

0 commit comments

Comments
 (0)