entrypoint.sh 327 B

123456789101112131415
  1. #!/bin/sh
  2. set -e
  3. # Ensure virtualenv binaries are in PATH
  4. export PATH="/app/flowsint-api/.venv/bin:$PATH"
  5. if [ "$SKIP_MIGRATIONS" != "true" ]; then
  6. echo "Running database migrations..."
  7. alembic upgrade head
  8. else
  9. echo "Skipping database migrations (SKIP_MIGRATIONS=true)..."
  10. fi
  11. echo "Starting application..."
  12. exec "$@"