Merge remote-tracking branch 'origin/master'

This commit is contained in:
M_Kececi
2026-03-03 10:47:59 +03:00
parent ae8cd892b0
commit a6f6110bb5
3 changed files with 15 additions and 2 deletions

View File

@@ -89,6 +89,15 @@ ensure_ui_permissions() {
find "$ui_root" -type f -exec chmod 644 {} \;
}
clean_ui_build_artifacts() {
cd "$APP_DIR/ui"
rm -rf dist .quasar node_modules/.cache || true
}
purge_nginx_ui_cache() {
rm -rf /var/cache/nginx/* || true
}
ensure_ui_readable_by_nginx() {
local ui_index="$APP_DIR/ui/dist/spa/index.html"
@@ -174,6 +183,7 @@ run_deploy() {
log_step "BUILD UI"
cd "$APP_DIR/ui"
clean_ui_build_artifacts
npm ci --no-audit --no-fund --include=optional
npm i -D --no-audit --no-fund sass-embedded@1.93.2
npm run build
@@ -194,6 +204,9 @@ run_deploy() {
log_step "RESTART SERVICES"
restart_services
log_step "PURGE NGINX CACHE"
purge_nginx_ui_cache
echo "[DEPLOY FINISHED] $(date '+%F %T')"
}