Ver Fonte

Ensure we are in the correct folder to run the migration

Johannes há 8 anos atrás
pai
commit
9a7f301b1c
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      start.sh

+ 1 - 1
start.sh

@@ -42,13 +42,13 @@ echo "==> Setup taiga virtual env"
 source /app/code/taiga/bin/activate
 
 echo "==> Run migration scripts"
+cd /app/code/taiga-back
 python manage.py migrate --noinput
 
 if [[ ! -d /app/data/media/user ]]; then
     echo "==> New installation create inital project templates"
 
     mkdir -p /app/data/media/user
-    cd /app/code/taiga-back
 
     python manage.py loaddata initial_user
     python manage.py loaddata initial_project_templates