tombola-bde-2020/entrypoint.sh

13 lines
262 B
Bash
Executable File

#!/bin/bash
# Copyright (C) 2020 by BDE ENS Paris-Saclay
# SPDX-License-Identifier: GPL-3.0-or-later
python manage.py compilemessages
python manage.py makemigrations
# Wait for database
sleep 2
python manage.py migrate
python manage.py runserver 0.0.0.0:8000