mirror of
https://github.com/coollabsio/coolify.git
synced 2026-06-19 07:35:25 +00:00
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:
@@ -145,5 +145,21 @@ CMD ["sh", "-c", "echo Crashing in 5 seconds... && sleep 5 && exit 1"]
|
||||
'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 @@ class ApplicationSettingsSeeder extends Seeder
|
||||
$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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user