Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
allgo
allgo
Commits
13e204ea
Commit
13e204ea
authored
Apr 01, 2020
by
BAIRE Anthony
Browse files
add the container_migrate script
parent
7d8329e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
django/setup/files/dk/container_init
View file @
13e204ea
...
...
@@ -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
...
...
django/setup/files/dk/container_migrate
0 → 100755
View file @
13e204ea
#!/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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment