Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 13e204ea authored by BAIRE Anthony's avatar BAIRE Anthony
Browse files

add the container_migrate script

parent 7d8329e5
Branches
Tags
1 merge request!205fixes for the qualif deployment
......@@ -27,7 +27,6 @@ fi
echo "CREATE DATABASE allgo CHARACTER SET 'utf8';" | mysql_cmd
# generate the missing migrations (in qualif/dev only)
# TODO: remove this when we deploy in production
if [ "$ENV" = dev ] || [ "$ENV" = qualif ] ; then
python3 manage.py makemigrations
fi
......
#!/bin/sh
set -e -x
# wait until the mysql server is ready
wait-mysql
mkdir -p /vol/cache/allgo
# generate the missing migrations (in qualif/dev only)
if [ "$ENV" = dev ] || [ "$ENV" = qualif ] ; then
python3 manage.py makemigrations
fi
# create the tables (apply the migrations)
python3 manage.py migrate
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment