pkmntrade.club/scripts/deploy.sh

15 lines
No EOL
429 B
Bash
Executable file

#!/bin/bash
echo "*** Running makemigrations --check to make sure migrations are up to date..."
django-admin makemigrations --check --noinput 2>&1 || exit 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!"