mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-09 17:45:32 -04:00
handle case where we are trying to build on github and haven't deployed yet
This commit is contained in:
@@ -36,7 +36,7 @@ class Config(object):
|
|||||||
NR_BROWSER_KEY = getenv("NR_BROWSER_KEY")
|
NR_BROWSER_KEY = getenv("NR_BROWSER_KEY")
|
||||||
settings = newrelic.agent.global_settings()
|
settings = newrelic.agent.global_settings()
|
||||||
NR_MONITOR_ON = settings and settings.monitor_mode
|
NR_MONITOR_ON = settings and settings.monitor_mode
|
||||||
COMMIT_HASH = getenv("COMMIT_HASH")
|
COMMIT_HASH = getenv("COMMIT_HASH", "Unknown")
|
||||||
|
|
||||||
TEMPLATE_PREVIEW_API_HOST = getenv(
|
TEMPLATE_PREVIEW_API_HOST = getenv(
|
||||||
"TEMPLATE_PREVIEW_API_HOST", "http://localhost:9999"
|
"TEMPLATE_PREVIEW_API_HOST", "http://localhost:9999"
|
||||||
|
|||||||
Reference in New Issue
Block a user