mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 02:35:14 +00:00
ahhhhhhh
This commit is contained in:
parent
81728d346a
commit
59fd80bb8a
2 changed files with 1 additions and 8 deletions
|
|
@ -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 && \
|
||||
|
|
|
|||
|
|
@ -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..."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue