Skip to content

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.

prod seeder

Andras Bacsaia11dc20d71f3
diff --git a/database/seeders/ProductionSeeder.php b/database/seeders/ProductionSeeder.php
index 8334cd5a4f..af1daa0b86 100644
--- a/database/seeders/ProductionSeeder.php
+++ b/database/seeders/ProductionSeeder.php
@@ -2,6 +2,8 @@
namespace Database\Seeders;
+use App\Models\GithubApp;
+use App\Models\GitlabApp;
use App\Models\InstanceSettings;
use App\Models\PrivateKey;
use App\Models\Project;
@@ -65,5 +67,25 @@ class ProductionSeeder extends Seeder
'private_key_id' => 0,
]);
}
+ if (GithubApp::find(0) == null) {
+ GithubApp::create([
+ 'id' => 0,
+ 'name' => 'Public GitHub',
+ 'api_url' => 'https://api.github.com',
+ 'html_url' => 'https://github.com',
+ 'is_public' => true,
+ 'team_id' => 0,
+ ]);
+ }
+ if (GitlabApp::find(0) == null) {
+ GitlabApp::create([
+ 'id' => 0,
+ 'name' => 'Public GitLab',
+ 'api_url' => 'https://gitlab.com/api/v4',
+ 'html_url' => 'https://gitlab.com',
+ 'is_public' => true,
+ 'team_id' => 0,
+ ]);
+ }
}
}