Enable debugging for Pandora

This commit is contained in:
Disassembler 2017-11-29 21:27:11 +01:00
parent 81f4dd3dce
commit a218ebe7d5
2 changed files with 7 additions and 2 deletions

View File

@ -46,6 +46,11 @@ cp ${SOURCE_DIR}/pandora/srv/pandora/pandora/config.jsonc /srv/pandora/pandora/c
cp /srv/pandora/pandora/gunicorn_config.py.in /srv/pandora/pandora/gunicorn_config.py
envsubst <${SOURCE_DIR}/pandora/srv/pandora/pandora/local_settings.py >/srv/pandora/pandora/local_settings.py
# Set "production values" (increases performance) only if the DEBUG environment variable is not set
if [ ${DEBUG:-0} -eq 0 ]; then
sed -i 's/DEBUG = True/DEBUG = False/' /srv/pandora/pandora/local_settings.py
fi
# Create Pandora OS user
adduser --system --group --home /srv/pandora --shell /bin/false pandora
chown -R pandora:pandora /srv/pandora

View File

@ -12,6 +12,6 @@ XACCELREDIRECT = True
GOOGLE_API_KEY = 'AIzaSyBvIF3D550tlpL6o1xRrDurGo-81VhHlOw'
DEBUG = False
DEBUG = True
TEMPLATE_DEBUG = DEBUG
JSON_DEBUG = False
JSON_DEBUG = DEBUG