This commit is contained in:
dekzter 2025-03-03 18:44:23 -05:00
parent 81728d346a
commit 59fd80bb8a
2 changed files with 1 additions and 8 deletions

View file

@ -24,7 +24,7 @@ RUN apt-get update && \
pip install --no-cache-dir -r requirements.txt && \
pip install --no-cache-dir -r requirements-pytorch.txt && \
pip install --no-cache-dir -r requirements-sentence-transformers.txt && \
python manage.py collectstatic && \
python manage.py collectstatic --noinput && \
echo "installing sentence-transformers" && \
pip install sentence-transformers==3.4.1 && \
cd /app/frontend && \

View file

@ -198,13 +198,6 @@ fi
cd /app
echo_with_timestamp "Running Django commands..."
python manage.py migrate --noinput || true
echo_with_timestamp "Checking if Django superuser exists..."
if ! python manage.py shell -c "from django.contrib.auth import get_user_model; exit(0) if get_user_model().objects.filter(username='${DJANGO_SUPERUSER_USERNAME}').exists() else exit(1)"; then
echo_with_timestamp "Superuser does not exist. Creating..."
python manage.py createsuperuser --noinput || true
else
echo_with_timestamp "Superuser already exists. Skipping creation."
fi
# Always start Gunicorn
echo "🚀 Starting Gunicorn..."