Add CTS static files serving notice

This commit is contained in:
Disassembler 2018-01-18 21:18:17 +01:00
parent e10c1904ec
commit 07cd9518c9
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499

1
cts.sh
View File

@ -21,6 +21,7 @@ envsubst <${SOURCE_DIR}/srv/cts/conf/spotter.py >/srv/cts/conf/spotter.py
# Set "production values" (increases performance) only if the DEBUG environment variable is not set # Set "production values" (increases performance) only if the DEBUG environment variable is not set
if [ ${DEBUG:-0} -eq 0 ]; then if [ ${DEBUG:-0} -eq 0 ]; then
# TODO: DEBUG = False needs static resources to be server by nginx, see https://docs.djangoproject.com/en/2.0/howto/static-files/#serving-static-files-during-development
sed -i 's/DEBUG = True/DEBUG = False/' /srv/cts/conf/spotter.py sed -i 's/DEBUG = True/DEBUG = False/' /srv/cts/conf/spotter.py
fi fi