feat(seeders): add railpack-static example application seed data
Add ApplicationSeeder entry for railpack-static example with railpack build pack and corresponding application settings configuration.
This commit is contained in:
parent
ff0de0bc31
commit
7dd648e549
2 changed files with 23 additions and 0 deletions
|
|
@ -145,5 +145,21 @@ public function run(): void
|
|||
'source_id' => 1,
|
||||
'source_type' => GitlabApp::class,
|
||||
]);
|
||||
Application::create([
|
||||
'uuid' => 'railpack-static',
|
||||
'name' => 'Railpack Static Example',
|
||||
'fqdn' => 'http://railpack-static.127.0.0.1.sslip.io',
|
||||
'repository_project_id' => 603035348,
|
||||
'git_repository' => 'coollabsio/coolify-examples',
|
||||
'git_branch' => 'v4.x',
|
||||
'base_directory' => '/static',
|
||||
'build_pack' => 'railpack',
|
||||
'ports_exposes' => '80',
|
||||
'environment_id' => 1,
|
||||
'destination_id' => 0,
|
||||
'destination_type' => StandaloneDocker::class,
|
||||
'source_id' => 1,
|
||||
'source_type' => GithubApp::class,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,5 +22,12 @@ public function run(): void
|
|||
$gitlabPublic->settings->is_static = true;
|
||||
$gitlabPublic->settings->save();
|
||||
}
|
||||
|
||||
$railpackStatic = Application::where('uuid', 'railpack-static')->first();
|
||||
if ($railpackStatic) {
|
||||
$railpackStatic->load(['settings']);
|
||||
$railpackStatic->settings->is_static = true;
|
||||
$railpackStatic->settings->save();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue