#!/bin/bash
# Run once on cPanel server after uploading backend files (via SSH or Terminal in cPanel)
set -e
cd "$(dirname "$0")"

echo "==> Installing Python packages..."
pip install -r requirements.txt

echo "==> Collecting static files..."
python manage.py collectstatic --noinput

echo "==> Done. Restart Python app from cPanel → Setup Python App → Restart"
