- Coming-soon page "Kantarci Markt – Neueröffnung" rebuilt from the delivered package with imprint, privacy and 404 (scripts/reset-kantarci-markt.sh, ports 8100/8101). - Own CSS accepts a short quoted string for `content`, so ::before/::after work. - cms:fonts:fetch replaces only the rules of the fetched families in fonts.css. - A variable font is linked and preloaded once with a weight range instead of once per weight. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
23 lines
1.1 KiB
Bash
23 lines
1.1 KiB
Bash
#!/bin/sh
|
|
# Wirft die Kantarci-Markt-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/kantarci-markt.db"
|
|
export MEDIA_DIRECTORY="$root/var/kantarci-markt-media"
|
|
rm -f "$root/var/kantarci-markt.db"
|
|
rm -rf "$root/var/kantarci-markt-media"
|
|
"$php" vendor/bin/doctrine-migrations migrate --no-interaction -q
|
|
assets="${1:-$root/var/kantarci-markt-assets}"
|
|
# Logo zuschneiden, Seitensymbol und Stempel rastern (Chromium ueber Playwright).
|
|
node scripts/build-kantarci-markt-assets.mjs "$assets"
|
|
"$php" -d memory_limit=512M scripts/seed-kantarci-markt.php "$assets"
|
|
# DM Sans vom eigenen Server. Der Abruf ersetzt in fonts.css nur die Regeln fuer DM Sans; die
|
|
# Schriften der anderen Installationen bleiben stehen. Das PHP 8.4 hier kennt keine
|
|
# Stammzertifikate; mit var/cacert.pem (https://curl.se/ca/cacert.pem) klappt der Abruf.
|
|
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
|