mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 14:36:17 +00:00
code style fix
add command tests
This commit is contained in:
@ -21,13 +21,13 @@ public function run(): void
|
||||
'email' => 'user@example.com',
|
||||
]);
|
||||
$server = Server::factory()->create([
|
||||
'user_id' => $user->id
|
||||
'user_id' => $user->id,
|
||||
]);
|
||||
$server->services()->create([
|
||||
'type' => 'database',
|
||||
'name' => config('core.databases_name.mysql80'),
|
||||
'version' => config('core.databases_version.mysql80'),
|
||||
'status' => ServiceStatus::READY
|
||||
'status' => ServiceStatus::READY,
|
||||
]);
|
||||
$server->services()->create([
|
||||
'type' => 'php',
|
||||
@ -36,17 +36,17 @@ public function run(): void
|
||||
],
|
||||
'name' => 'php',
|
||||
'version' => '8.1',
|
||||
'status' => ServiceStatus::READY
|
||||
'status' => ServiceStatus::READY,
|
||||
]);
|
||||
$server->services()->create([
|
||||
'type' => 'webserver',
|
||||
'name' => 'nginx',
|
||||
'version' => 'latest',
|
||||
'status' => ServiceStatus::READY
|
||||
'status' => ServiceStatus::READY,
|
||||
]);
|
||||
Site::factory()->create([
|
||||
'server_id' => $server->id,
|
||||
'type' => SiteType::LARAVEL
|
||||
'type' => SiteType::LARAVEL,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user