Files
Lars StommerandClaude Opus 5.5 8d904660b9 Automatisches Deployment nach Strato (atomare Releases, Rollback, Gitea Actions)
- scripts/deploy.sh: Build aus Git-Stand (Composer ohne Dev, Vite), Upload per SSH, Migration, Caches, atomarer Umschalter current -> releases/<zeit>, Gesundheitscheck mit automatischem Rollback; Befehle setup/deploy/rollback/releases/artisan; lokaler Testmodus
- .gitea/workflows/deploy.yml: Tests bei jedem Push, Deployment bei Tags v* oder per Knopfdruck
- Vorlagen scripts/deploy.example.env und .env.production.example (Strato MySQL, SMTP, IMAP)
- Scheduler-Endpunkt /automation/scheduler als Ausweich für fehlende Cronjobs
- ProductionSeeder für die Ersteinrichtung ohne Testdaten

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 15:28:00 +02:00

29 lines
799 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
namespace Database\Seeders;
use App\Models\Site;
use Illuminate\Database\Seeder;
/**
* Initial data for a fresh production installation (no test data, no factories – they are not deployed).
* Run once: scripts/deploy.sh production artisan db:seed --class=ProductionSeeder --force
* Create the first administrator afterwards: scripts/deploy.sh production artisan make:filament-user
*/
class ProductionSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
if (Site::query()->exists()) {
$this->command?->warn('Es gibt bereits eine Website – Ersteinrichtung übersprungen.');
return;
}
$this->call([PropertySeeder::class, WebsiteContentSeeder::class, SiteSeeder::class]);
}
}