Files
KantSites/scripts/reset-maler-drews.sh
kantarciandClaude Fable 5.1 533e181590 Rebuild maler-drews.com as a fourth installation and fix two public-page gaps
Ihr Malerservice Drews (Gernsbach) as its own installation: seed script with
theme, header, footer, eight pages, 31 posts in two categories, contact form,
consent-gated map and videos, redirects; the wording lives in a generated
content file. Reset script, launch entry on port 8093, Cormorant Garamond
served locally with its OFL text.

Two CMS fixes found while building: wide and full sections lost against the
theme's .kant .shell max-width, and the scroll-top link sat outside every
landmark (axe "region"). Lighthouse on six pages: accessibility, best
practices, SEO and agentic browsing 100, performance 98-100; axe zero
violations on nine pages at 1440 and 390 px.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-15 11:11:42 +02:00

24 lines
1.2 KiB
Bash

#!/bin/sh
# Wirft die Maler-Drews-Installation weg und baut sie neu auf. Nur fuer den Aufbau gedacht.
set -e
root="C:/Django Project/KantSites"
php="${PHP_BINARY:-C:/php84/php.exe}"
export DATABASE_URL="sqlite:///$root/var/maler-drews.db"
export MEDIA_DIRECTORY="$root/var/maler-drews-media"
rm -f "$root/var/maler-drews.db"
rm -rf "$root/var/maler-drews-media"
"$php" vendor/bin/doctrine-migrations migrate --no-interaction -q
assets="${1:-$root/var/maler-drews-assets}"
"$php" -d memory_limit=512M scripts/seed-maler-drews.php "$assets"
# Lato und Cormorant Garamond vom eigenen Server. Der Abruf schreibt fonts.css nur fuer dieses
# Design neu; die Datei teilen sich hier aber alle Installationen (Kant-IT und Elektro Bernhard
# brauchen Lato 900). Deshalb nur holen, wenn die Cormorant-Dateien fehlen. Das PHP 8.4 hier kennt
# keine Stammzertifikate; mit var/cacert.pem (https://curl.se/ca/cacert.pem) klappt der Abruf.
if [ -f "$root/public/assets/fonts/cormorant-garamond-700-latin.woff2" ]; then
echo "Schriften liegen bereits unter public/assets/fonts."
elif [ -f "$root/var/cacert.pem" ]; then
"$php" -d curl.cainfo="$root/var/cacert.pem" -d openssl.cafile="$root/var/cacert.pem" bin/console cms:fonts:fetch
else
"$php" bin/console cms:fonts:fetch
fi