An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
test
Andras Bacsai56ae346b9d78
diff --git a/database/seeders/ProductionSeeder.php b/database/seeders/ProductionSeeder.phpindex 268fd82919..3bcf7d193e 100644--- a/database/seeders/ProductionSeeder.php+++ b/database/seeders/ProductionSeeder.php@@ -63,40 +63,13 @@ class ProductionSeeder extends Seeder]);}- if (! isCloud() && config('constants.coolify.is_windows_docker_desktop') == false) {- $coolify_key_name = '@host.docker.internal';- $ssh_keys_directory = Storage::disk('ssh-keys')->files();- $coolify_key = collect($ssh_keys_directory)->firstWhere(fn ($item) => str($item)->contains($coolify_key_name));-- $private_key_found = PrivateKey::find(0);- if (! $private_key_found) {- if ($coolify_key) {- $user = str($coolify_key)->before('@')->after('id.');- $coolify_key = Storage::disk('ssh-keys')->get($coolify_key);- PrivateKey::create([- 'id' => 0,- 'team_id' => 0,- 'name' => 'localhost\'s key',- 'description' => 'The private key for the Coolify host machine (localhost).',- 'private_key' => $coolify_key,- ]);- echo "SSH key found for the Coolify host machine (localhost).\n";- } else {- echo "No SSH key found for the Coolify host machine (localhost).\n";- echo "Please read the following documentation (point 3) to fix it: https://coolify.- io/docs/knowledge-base/server/openssh/\n";- echo "Your localhost connection won't work until then.";- }- }- }-if (! isCloud()) {if (Server::find(0) == null) {$server_details = ['id' => 0,'name' => 'localhost','description' => "This is the server where Coolify is running on. Don't delete this!",- 'user' => $user,+ 'user' => 'root','ip' => 'host.docker.internal','team_id' => 0,'private_key_id' => 0,@@ -125,7 +98,35 @@ class ProductionSeeder extends Seeder]);}}+ if (! isCloud() && config('constants.coolify.is_windows_docker_desktop') == false) {+ $coolify_key_name = '@host.docker.internal';+ $ssh_keys_directory = Storage::disk('ssh-keys')->files();+ $coolify_key = collect($ssh_keys_directory)->firstWhere(fn ($item) => str($item)->contains($coolify_key_name));+ $private_key_found = PrivateKey::find(0);+ if (! $private_key_found) {+ if ($coolify_key) {+ $user = str($coolify_key)->before('@')->after('id.');+ $coolify_key = Storage::disk('ssh-keys')->get($coolify_key);+ PrivateKey::create([+ 'id' => 0,+ 'team_id' => 0,+ 'name' => 'localhost\'s key',+ 'description' => 'The private key for the Coolify host machine (localhost).',+ 'private_key' => $coolify_key,+ ]);+ $server = Server::find(0);+ $server->user = $user;+ $server->save();+ echo "SSH key found for the Coolify host machine (localhost).\n";+ } else {+ echo "No SSH key found for the Coolify host machine (localhost).\n";+ echo "Please read the following documentation (point 3) to fix it: https://coolify.+ io/docs/knowledge-base/server/openssh/\n";+ echo "Your localhost connection won't work until then.";+ }+ }+ }if (config('constants.coolify.is_windows_docker_desktop')) {PrivateKey::updateOrCreate([