Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -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')"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user