refactor(dev): replace v5:sync-dev-lima-servers with V5DevLimaSeeder

Switch Lima VM dev-environment sync from a custom Artisan command to a
database seeder. The seeder creates/updates the Development-Lima cluster
and its two servers idempotently, reading ssh_user from the
COOLIFY_CLI_SSH_USER env var (exposed via config('coold.dev_ssh_user')).

dev.sh now passes COOLIFY_CLI_SSH_USER and runs db:seed instead of
building per-server --server flag arrays.
This commit is contained in:
Andras Bacsai committed 2026-06-16 17:10:40 +02:00
1 parent 9566b259b2
commit 295addb6b0
7 files changed
+129 -22

No files matched your search

@@ -59,13 +59,14 @@ it('retries dev coolify bootstrap because fresh Lima setup can complete across p
->and($script)->toContain('fresh Lima hosts can finish setup after partial bootstrap phases');
});
it('syncs bootstrapped Lima VMs into v5 development server state', function () {
it('seeds bootstrapped Lima VMs into v5 development server state', function () {
$script = file_get_contents(base_path('scripts/dev.sh'));
expect($script)->toContain('sync_v5_dev_lima_servers()')
->and($script)->toContain('v5:sync-dev-lima-servers')
->and($script)->toContain('--cluster="Development-Lima"')
->and($script)->toContain('--server "${instance}|${node}|$(coolify_ssh_user)|22"');
->and($script)->toContain('COOLIFY_CLI_SSH_USER="$ssh_user"')
->and($script)->toContain('db:seed --class=V5DevLimaSeeder --force')
->and($script)->not->toContain('v5:sync-dev-lima-servers')
->and($script)->not->toContain('--server "${instance}|${node}|$(coolify_ssh_user)|22"');
});
it('supports down cleanup as the preferred VM cleanup command', function () {