зеркало из https://github.com/mozilla/treeherder.git
Permit running initialize_data.sh from virtualenv (#6212)
This commit is contained in:
Родитель
14762dd8d6
Коммит
b27706de34
|
@ -2,8 +2,10 @@
|
|||
# Make non-zero exit codes & other errors fatal.
|
||||
set -euo pipefail
|
||||
|
||||
export DATABASE_URL=${DATABASE_URL:-mysql://root@127.0.0.1:3306/treeherder}
|
||||
# Only execute if we're using the Mysql container
|
||||
if [ "${DATABASE_URL}" == "mysql://root@mysql/treeherder" ]; then
|
||||
if [ "${DATABASE_URL}" == "mysql://root@mysql/treeherder" ] ||
|
||||
[ "${DATABASE_URL}" == "mysql://root@127.0.0.1:3306/treeherder" ]; then
|
||||
# Initialize migrations and SETA
|
||||
echo '-----> Running Django migrations and loading reference data'
|
||||
./manage.py migrate --noinput
|
||||
|
|
Загрузка…
Ссылка в новой задаче