- Website of Garten- und Landschaftsbau Hüfner GmbH rebuilt from the delivered design with imprint, privacy, 404 and the enquiry form (scripts/reset-huefner.sh, ports 8102/8103), Barlow and Barlow Condensed served locally with their licence. - Buttons, icon cards, calls to action, icons and linked images accept tel: and mailto: links, the same targets menus and rich text already allowed (ADR 107). - The arrow inside a button takes the button's text colour instead of the accent colour. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
27 lines
1.1 KiB
Bash
27 lines
1.1 KiB
Bash
#!/bin/sh
|
|
# Wirft die Hüfner-Installation weg und baut sie neu auf. Nur fuer den Aufbau gedacht.
|
|
# Erstes Argument: der entpackte Entwurf (Ordner mit index.html und images/).
|
|
set -e
|
|
root="C:/Django Project/KantSites"
|
|
php="${PHP_BINARY:-C:/php84/php.exe}"
|
|
export DATABASE_URL="sqlite:///$root/var/huefner.db"
|
|
export MEDIA_DIRECTORY="$root/var/huefner-media"
|
|
assets="$root/var/huefner-assets"
|
|
if [ -n "$1" ]; then
|
|
"$php" scripts/build-huefner-assets.php "$1" "$assets"
|
|
fi
|
|
if [ ! -f "$assets/favicon.png" ]; then
|
|
echo "Bilder fehlen: erst mit dem Ordner des Entwurfs als Argument aufrufen." >&2
|
|
exit 1
|
|
fi
|
|
rm -f "$root/var/huefner.db"
|
|
rm -rf "$root/var/huefner-media"
|
|
"$php" vendor/bin/doctrine-migrations migrate --no-interaction -q
|
|
"$php" -d memory_limit=512M scripts/seed-huefner.php "$assets"
|
|
# Barlow und Barlow Condensed vom eigenen Server; der Abruf ergaenzt fonts.css nur.
|
|
if [ -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
|