Add the Kantarci Reisen build scripts and local launch configurations

Seed, reset and asset scripts for the tenth installation, plus dev and prod launch entries
for it and for the multilingual test copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
kantarciandClaude Opus 5.5 committed 2026-10-09 16:56:44 +02:00
1 parent 28b2442188
commit c7705b7083
4 files changed
+1061

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
#!/bin/sh
# Wirft die Kantarci-Reisen-Installation weg und baut sie neu auf. Nur fuer den Aufbau gedacht.
# Erstes Argument: der entpackte Ordner „Kantarci-Reisen“ aus dem Komplettpaket (Website/, Logo/).
# Zweites Argument: der Screenshot der reiseSoft-Uebersicht (PNG, Beispieldaten).
set -e
root="C:/Django Project/KantSites"
php="${PHP_BINARY:-C:/php84/php.exe}"
export DATABASE_URL="sqlite:///$root/var/kantarci-reisen.db"
export MEDIA_DIRECTORY="$root/var/kantarci-reisen-media"
assets="$root/var/kantarci-reisen-assets"
if [ -n "$1" ]; then
"$php" scripts/build-kantarci-reisen-assets.php "$1" "$assets" "$2"
fi
if [ ! -f "$assets/favicon.png" ] || [ ! -f "$assets/reisesoft-uebersicht.png" ]; then
echo "Bilder fehlen: erst mit dem Paketordner und dem Screenshot als Argumente aufrufen." >&2
exit 1
fi
rm -f "$root/var/kantarci-reisen.db"
rm -rf "$root/var/kantarci-reisen-media"
"$php" vendor/bin/doctrine-migrations migrate --no-interaction -q
"$php" -d memory_limit=512M scripts/seed-kantarci-reisen.php "$assets"
# DM Sans 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