mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-24 22:16:37 +00:00
Check the copied nginx
configuration
Checking before the copy doesn't help. Fixes #804
This commit is contained in:
parent
18dca06321
commit
ef5b939caf
@ -352,8 +352,6 @@ COPY tubesync/tubesync/local_settings.py.container /app/tubesync/local_settings.
|
|||||||
RUN set -x && \
|
RUN set -x && \
|
||||||
# Make absolutely sure we didn't accidentally bundle a SQLite dev database
|
# Make absolutely sure we didn't accidentally bundle a SQLite dev database
|
||||||
rm -rf /app/db.sqlite3 && \
|
rm -rf /app/db.sqlite3 && \
|
||||||
# Check nginx configuration
|
|
||||||
nginx -t && \
|
|
||||||
# Run any required app commands
|
# Run any required app commands
|
||||||
/usr/bin/python3 -B /app/manage.py compilescss && \
|
/usr/bin/python3 -B /app/manage.py compilescss && \
|
||||||
/usr/bin/python3 -B /app/manage.py collectstatic --no-input --link && \
|
/usr/bin/python3 -B /app/manage.py collectstatic --no-input --link && \
|
||||||
@ -373,6 +371,9 @@ RUN set -x && \
|
|||||||
# Copy root
|
# Copy root
|
||||||
COPY config/root /
|
COPY config/root /
|
||||||
|
|
||||||
|
# Check nginx configuration copied from config/root/etc
|
||||||
|
RUN set -x && nginx -t
|
||||||
|
|
||||||
# patch background_task
|
# patch background_task
|
||||||
COPY patches/background_task/ \
|
COPY patches/background_task/ \
|
||||||
/usr/local/lib/python3/dist-packages/background_task/
|
/usr/local/lib/python3/dist-packages/background_task/
|
||||||
|
Loading…
Reference in New Issue
Block a user