← back to Fentucci

scripts/refresh-catalog.sh

10 lines

#!/bin/bash
# refresh-catalog.sh — pull fresh products.json from dw_unified on Kamatera
# Usage: bash /root/Projects/Designer-Wallcoverings/DW-Websites/Fentucci/scripts/refresh-catalog.sh
set -euo pipefail

DIR="$(cd "$(dirname "$0")/.." && pwd)"
echo "[catalog] refreshing from dw_unified → $DIR/data/products.json"
python3 "$DIR/scripts/refresh-catalog.py"
pm2 reload fentucci-website 2>/dev/null && echo "[pm2] reloaded" || echo "[pm2] not running"