mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-13 12:14:28 +00:00
fix(ui): prevent persisted sidebar restore animation
Remove Railpack example applications from the default seed data and update seed tests to assert they are no longer created.
This commit is contained in:
1 parent
51a3017e06
commit
88622ba7ea
6 files changed
+38
-66
No files matched your search
@@ -47,22 +47,6 @@ class ApplicationSeeder extends Seeder
|
||||
'source_id' => 1,
|
||||
'source_type' => GithubApp::class,
|
||||
]);
|
||||
Application::create([
|
||||
'uuid' => 'railpack-nodejs',
|
||||
'name' => 'Railpack NodeJS Fastify Example',
|
||||
'fqdn' => 'http://railpack-nodejs.127.0.0.1.sslip.io',
|
||||
'repository_project_id' => 603035348,
|
||||
'git_repository' => 'coollabsio/coolify-examples',
|
||||
'git_branch' => 'v4.x',
|
||||
'base_directory' => '/nodejs',
|
||||
'build_pack' => 'railpack',
|
||||
'ports_exposes' => '3000',
|
||||
'environment_id' => 1,
|
||||
'destination_id' => 0,
|
||||
'destination_type' => StandaloneDocker::class,
|
||||
'source_id' => 1,
|
||||
'source_type' => GithubApp::class,
|
||||
]);
|
||||
Application::create([
|
||||
'uuid' => 'dockerfile',
|
||||
'name' => 'Dockerfile Example',
|
||||
@@ -161,21 +145,5 @@ 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,12 +22,5 @@ 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