do not seed in coolify cloud

This commit is contained in:
Andras Bacsai 2023-08-28 15:03:44 +02:00
parent 5989eb8f6e
commit af30d0831d

View File

@ -45,6 +45,7 @@ class ProductionSeeder extends Seeder
]); ]);
} }
if (config('app.name') !== 'coolify-cloud') {
// Save SSH Keys for the Coolify Host // Save SSH Keys for the Coolify Host
$coolify_key_name = "id.root@host.docker.internal"; $coolify_key_name = "id.root@host.docker.internal";
$coolify_key = Storage::disk('ssh-keys')->get("{$coolify_key_name}"); $coolify_key = Storage::disk('ssh-keys')->get("{$coolify_key_name}");
@ -65,7 +66,6 @@ class ProductionSeeder extends Seeder
echo "Then try to install again.\n"; echo "Then try to install again.\n";
exit(1); exit(1);
} }
// 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) {
$server_details = [ $server_details = [
@ -99,6 +99,8 @@ class ProductionSeeder extends Seeder
'server_id' => 0, 'server_id' => 0,
]); ]);
} }
}
try { try {
$settings = InstanceSettings::get(); $settings = InstanceSettings::get();
if (is_null($settings->public_ipv4)) { if (is_null($settings->public_ipv4)) {