updates
This commit is contained in:
25
database/seeders/ApplicationPreviewSeeder.php
Normal file
25
database/seeders/ApplicationPreviewSeeder.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\Application;
|
||||
use App\Models\ApplicationPreview;
|
||||
use App\Models\Environment;
|
||||
use App\Models\GithubApp;
|
||||
use App\Models\StandaloneDocker;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class ApplicationPreviewSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
// $application_1 = Application::find(1);
|
||||
// ApplicationPreview::create([
|
||||
// 'application_id' => $application_1->id,
|
||||
// 'pull_request_id' => 1
|
||||
// ]);
|
||||
}
|
||||
}
|
||||
@@ -26,6 +26,7 @@ class ApplicationSeeder extends Seeder
|
||||
|
||||
Application::create([
|
||||
'name' => 'coollabsio/coolify-examples:nodejs-fastify',
|
||||
'fqdn' => 'http://foo.com',
|
||||
'repository_project_id' => 603035348,
|
||||
'git_repository' => 'coollabsio/coolify-examples',
|
||||
'git_branch' => 'nodejs-fastify',
|
||||
@@ -36,17 +37,7 @@ class ApplicationSeeder extends Seeder
|
||||
'destination_id' => $standalone_docker_1->id,
|
||||
'destination_type' => StandaloneDocker::class,
|
||||
'source_id' => $github_public_source->id,
|
||||
'source_type' => GithubApp::class,
|
||||
'previews' => [
|
||||
ApplicationPreview::from([
|
||||
'pullRequestId' => 1,
|
||||
'branch' => 'nodejs-fastify'
|
||||
]),
|
||||
ApplicationPreview::from([
|
||||
'pullRequestId' => 2,
|
||||
'branch' => 'nodejs-fastify'
|
||||
])
|
||||
]
|
||||
'source_type' => GithubApp::class
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,6 +26,7 @@ class DatabaseSeeder extends Seeder
|
||||
GitlabAppSeeder::class,
|
||||
ApplicationSeeder::class,
|
||||
ApplicationSettingsSeeder::class,
|
||||
ApplicationPreviewSeeder::class,
|
||||
DBSeeder::class,
|
||||
ServiceSeeder::class,
|
||||
EnvironmentVariableSeeder::class,
|
||||
|
||||
Reference in New Issue
Block a user