Able to backup Coolify itself

This commit is contained in:
Andras Bacsai
2023-08-11 16:13:53 +02:00
parent b7c9810461
commit 61864970c1
52 changed files with 353 additions and 409 deletions

View File

@@ -3,8 +3,6 @@
namespace Database\Seeders;
use App\Models\GitlabApp;
use App\Models\PrivateKey;
use App\Models\Team;
use Illuminate\Database\Seeder;
class GitlabAppSeeder extends Seeder
@@ -14,15 +12,13 @@ class GitlabAppSeeder extends Seeder
*/
public function run(): void
{
$root_team = Team::find(0);
$private_key_2 = PrivateKey::find(2);
GitlabApp::create([
'id' => 1,
'name' => 'Public GitLab',
'api_url' => 'https://gitlab.com/api/v4',
'html_url' => 'https://gitlab.com',
'is_public' => true,
'team_id' => $root_team->id,
'team_id' => 0,
]);
GitlabApp::create([
'id' => 2,
@@ -35,8 +31,8 @@ class GitlabAppSeeder extends Seeder
'deploy_key_id' => '1234',
'public_key' => 'dfjasiourj',
'webhook_token' => '4u3928u4y392',
'private_key_id' => $private_key_2->id,
'team_id' => $root_team->id,
'private_key_id' => 2,
'team_id' => 0
]);
}
}