feat: add persistent volumes
This commit is contained in:
@@ -40,7 +40,7 @@ return new class extends Migration
|
||||
$table->string('base_directory')->default('/');
|
||||
$table->string('publish_directory')->nullable();
|
||||
|
||||
$table->string('health_check_path')->nullable();
|
||||
$table->string('health_check_path')->default('/');
|
||||
$table->string('health_check_port')->nullable();
|
||||
$table->string('health_check_host')->default('localhost');
|
||||
$table->string('health_check_method')->default('GET');
|
||||
|
@@ -18,7 +18,6 @@ class DatabaseSeeder extends Seeder
|
||||
ProjectSeeder::class,
|
||||
ProjectSettingSeeder::class,
|
||||
EnvironmentSeeder::class,
|
||||
LocalPersistentVolumeSeeder::class,
|
||||
StandaloneDockerSeeder::class,
|
||||
SwarmDockerSeeder::class,
|
||||
KubernetesSeeder::class,
|
||||
@@ -28,6 +27,7 @@ class DatabaseSeeder extends Seeder
|
||||
ApplicationSettingsSeeder::class,
|
||||
DBSeeder::class,
|
||||
ServiceSeeder::class,
|
||||
LocalPersistentVolumeSeeder::class,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
@@ -13,10 +13,11 @@ class LocalPersistentVolumeSeeder extends Seeder
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
$application = Application::where('name', 'Public application (from GitHub)')->first();
|
||||
LocalPersistentVolume::create([
|
||||
'name' => 'test-pv',
|
||||
'mount_path' => '/data',
|
||||
'resource_id' => 1,
|
||||
'resource_id' => $application->id,
|
||||
'resource_type' => Application::class,
|
||||
]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user