prestart.sh 330 B

123456789101112131415161718
  1. #! /usr/bin/env bash
  2. # Let the DB start
  3. python /app/app/backend_pre_start.py
  4. # Run migrations
  5. # alembic upgrade head
  6. # Create initial data in DB
  7. python /app/app/initial_data.py
  8. if [ ! -e BACKEND_ZIP_STORAGE ]; then
  9. mkdir BACKEND_ZIP_STORAGE
  10. fi
  11. if [ ! -e BACKEND_VIDEOS_STORAGE ]; then
  12. mkdir BACKEND_VIDEOS_STORAGE
  13. fi