#!/usr/bin/env bash

# database migrations
sleep 10
echo -e "\e[104mApplying migrations...\e[0m"
python3 manage.py makemigrations
python3 manage.py migrate

echo -e "\e[104mCreating superuser...\e[0m"
python3 manage.py trycreatesuperuser

# Start server
echo -e "\e[42mStarting server...\e[0m"
python3 manage.py runserver_plus 0.0.0.0:8000
