Änderung der werbung
All checks were successful
Deploy SingleChat / deploy (push) Successful in 26s

This commit is contained in:
Torsten Schulz (local)
2026-06-18 08:33:42 +02:00
parent 0c6ab5727f
commit 62f5914b04
7 changed files with 274 additions and 568 deletions

View File

@@ -141,11 +141,17 @@ fi
log "Synchronisiere .env mit Vorlage"
session_secret="$(openssl rand -hex 32)"
if [ -f "$APP_DIR/.env" ]; then
env_backup_path="$APP_DIR/.env.bak"
cp -a "$APP_DIR/.env" "$env_backup_path"
log "Backup der bisherigen .env erstellt: $env_backup_path"
fi
"$ENV_MERGE_SCRIPT" "$ENV_TEMPLATE" "$APP_DIR/.env" "$session_secret"
if [ "$(id -u)" -eq 0 ]; then
chown "$RUN_USER:$RUN_GROUP" "$APP_DIR/.env"
fi
chmod 640 "$APP_DIR/.env"
log "Baue Client"
run_as_deploy_user npm run build