Skip to content

Commit

Permalink
Fix: ID issues on dev seeders
Browse files Browse the repository at this point in the history
  • Loading branch information
peaklabs-dev committed Sep 17, 2024
1 parent 4389541 commit ccbbfd8
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion database/seeders/GithubAppSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function run(): void
'client_id' => 'Iv1.220e564d2b0abd8c',
'client_secret' => '116d1d80289f378410dd70ab4e4b81dd8d2c52b6',
'webhook_secret' => '326a47b49054f03288f800d81247ec9414d0abf3',
'private_key_id' => 1,
'private_key_id' => 2,
'team_id' => 0,
]);
}
Expand Down
2 changes: 0 additions & 2 deletions database/seeders/PrivateKeySeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ class PrivateKeySeeder extends Seeder
public function run(): void
{
PrivateKey::create([
'id' => 0,
'team_id' => 0,
'name' => 'Testing Host Key',
'description' => 'This is a test docker container',
Expand All @@ -28,7 +27,6 @@ public function run(): void
]);

PrivateKey::create([
'id' => 1,
'team_id' => 0,
'name' => 'development-github-app',
'description' => 'This is the key for using the development GitHub app',
Expand Down
3 changes: 1 addition & 2 deletions database/seeders/ServerSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ class ServerSeeder extends Seeder
public function run(): void
{
Server::create([
'id' => 0,
'name' => 'localhost',
'description' => 'This is a test docker container in development mode',
'ip' => 'coolify-testing-host',
'team_id' => 0,
'private_key_id' => 0,
'private_key_id' => 1,
]);
}
}
2 changes: 1 addition & 1 deletion database/seeders/ServerSettingSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class ServerSettingSeeder extends Seeder
*/
public function run(): void
{
$server_2 = Server::find(0)->load(['settings']);
$server_2 = Server::find(1)->load(['settings']);
$server_2->settings->wildcard_domain = 'http://127.0.0.1.sslip.io';
$server_2->settings->is_build_server = false;
$server_2->settings->is_usable = true;
Expand Down

0 comments on commit ccbbfd8

Please sign in to comment.