Enable debugging for Pandora
This commit is contained in:
parent
81f4dd3dce
commit
a218ebe7d5
@ -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
|
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
|
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
|
# Create Pandora OS user
|
||||||
adduser --system --group --home /srv/pandora --shell /bin/false pandora
|
adduser --system --group --home /srv/pandora --shell /bin/false pandora
|
||||||
chown -R pandora:pandora /srv/pandora
|
chown -R pandora:pandora /srv/pandora
|
||||||
|
@ -12,6 +12,6 @@ XACCELREDIRECT = True
|
|||||||
|
|
||||||
GOOGLE_API_KEY = 'AIzaSyBvIF3D550tlpL6o1xRrDurGo-81VhHlOw'
|
GOOGLE_API_KEY = 'AIzaSyBvIF3D550tlpL6o1xRrDurGo-81VhHlOw'
|
||||||
|
|
||||||
DEBUG = False
|
DEBUG = True
|
||||||
TEMPLATE_DEBUG = DEBUG
|
TEMPLATE_DEBUG = DEBUG
|
||||||
JSON_DEBUG = False
|
JSON_DEBUG = DEBUG
|
||||||
|
Loading…
Reference in New Issue
Block a user