chore: initial scaffold (Whitelabel-Fork von Pfandsystem)
- Source-Copy von /root/entwicklung/pfandsystem - docker-compose.yml umgeschrieben: pfandsystem-demo-* Container, Ports 3308/8083/3003 (alle localhost) - Traefik-Label fuer pfandsystem.dockly.de - Erweitertes Multi-Tenant-Schema (tenants, tenant_id auf allen Tabellen) - Neue Tabellen: kunden_bilder, geraete - Neue Spalten: kunden.anlieferungshinweis, kunden.lieferzeit_bis - Rollen: superadmin, admin, user, fahrer - .env.example + README Code-Refactor (Tailwind, Multi-Tenant-Middleware, Erweiterungen) folgt.
This commit is contained in:
20
deploy-to-nginx.sh
Executable file
20
deploy-to-nginx.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Build das Projekt
|
||||
npm run build
|
||||
|
||||
# Zielverzeichnis für nginx
|
||||
TARGET=/usr/share/nginx/html
|
||||
|
||||
# Lösche alten Inhalt (optional, vorsichtig!)
|
||||
sudo rm -rf $TARGET/*
|
||||
|
||||
# Kopiere neuen Build nach nginx-root
|
||||
sudo cp -r dist/* $TARGET/
|
||||
|
||||
# Setze Dateirechte
|
||||
sudo chown -R www-data:www-data $TARGET
|
||||
sudo chmod -R 755 $TARGET
|
||||
|
||||
echo "Deployment abgeschlossen. Die App ist jetzt unter nginx erreichbar."
|
||||
Reference in New Issue
Block a user