Commit 79b2d669 authored by ∞'s avatar 💻

wip

parent 656dd5af
Pipeline #7216 failed
......@@ -14,11 +14,8 @@ COPY . /app/
RUN pip install django
USER app
RUN xdevops collectstatic --noinput
RUN ls -l /app/static
RUN find /app/static
RUN gzip -k -6 $(find /app/static -type f)
CMD /usr/bin/dumb-init bash -c "until djcli dbcheck; do sleep 1; done && xdevops migrate --noinput && uwsgi \
RUN ./manage.py collectstatic --noinput
CMD /usr/bin/dumb-init bash -c "until djcli dbcheck; do sleep 1; done && ./manage.py migrate --noinput && uwsgi \
--spooler=/app/spool \
--spooler-processes 3 \
--http-socket=0.0.0.0:8000 \
......@@ -42,5 +39,4 @@ CMD /usr/bin/dumb-init bash -c "until djcli dbcheck; do sleep 1; done && xdevops
--mime-file /etc/mime.types \
--thunder-lock \
--offload-threads '%k' \
--static-map $STATIC_URL=$STATIC_ROOT \
--static-gzip-all"
--static-map $STATIC_URL=$STATIC_ROOT"
#!/usr/bin/env python
#!/usr/bin/env python3
"""Django's command-line utility for administrative tasks."""
import os
import sys
......
......@@ -117,4 +117,5 @@ USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/3.0/howto/static-files/
STATIC_URL = '/static/'
STATIC_URL = os.getenv('STATIC_URL')
STATIC_ROOT = os.getenv('STATIC_ROOT')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment