1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-11-27 02:43:01 +00:00
nk20/entrypoint.sh

14 lines
299 B
Bash
Raw Normal View History

2020-02-03 10:50:42 +00:00
#!/bin/bash
2020-02-18 20:30:26 +00:00
# Copyright (C) 2018-2020 by BDE ENS Paris-Saclay
# SPDX-License-Identifier: GPL-3.0-or-later
2020-02-03 10:50:42 +00:00
python manage.py compilemessages
python manage.py makemigrations
2020-02-18 20:30:26 +00:00
# Wait for database
2020-02-03 10:50:42 +00:00
sleep 5
python manage.py migrate
# TODO: use uwsgi in production
python manage.py runserver 0.0.0.0:8000