mirror of
https://github.com/coollabsio/coolify.git
synced 2026-08-24 10:05:47 -05:00
Add configurable development QEMU profiles, host setup, VM lifecycle management, and commands to seed managed VMs as Coolify servers. Improve installation dialog logs with responsive mobile presentation.
28 lines
794 B
PHP
28 lines
794 B
PHP
<?php
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
use App\Actions\Development\SeedDevelopmentQemuServer;
|
|
use Illuminate\Console\Command;
|
|
|
|
class SeedDevelopmentQemuServerCommand extends Command
|
|
{
|
|
protected $signature = 'dev:qemu:seed {profile : Profile key from config/development-qemu.php} {--keep-others}';
|
|
|
|
protected $description = 'Seed one development QEMU server in the Coolify database';
|
|
|
|
public function handle(): int
|
|
{
|
|
if (! isDev()) {
|
|
$this->error('This command may only run in development mode.');
|
|
|
|
return self::FAILURE;
|
|
}
|
|
|
|
$server = SeedDevelopmentQemuServer::run($this->argument('profile'), ! $this->option('keep-others'));
|
|
$this->info("Seeded {$server->name} at {$server->ip}.");
|
|
|
|
return self::SUCCESS;
|
|
}
|
|
}
|