pkmntrade.club/scripts/deploy.sh
2025-05-09 08:43:43 -07:00

15 lines
No EOL
399 B
Bash
Executable file

#!/bin/bash
echo "Running makemigrations --check to make sure migrations are up to date..."
django-admin makemigrations --noinput --check 2>&1
echo "Running migrate to apply migrations..."
django-admin migrate --noinput 2>&1
echo "Clearing django cache..."
django-admin clear_cache 2>&1
echo "Running collectstatic..."
django-admin collectstatic -c --no-input 2>&1
echo "Deployed successfully!"