#!/bin/bash

# Collect static files and migrate, all in one file to make it easy for Cloud
# Run jobs.

set -euo pipefail

cd ~/promptgame/
./manage.py check --deploy
# delete old static (-c) and write the new static files
./manage.py collectstatic -v 3 -c --no-input
./manage.py migrate -v 3
