Skip to content

Commit

Permalink
Add tornado debug env value
Browse files Browse the repository at this point in the history
  • Loading branch information
ftsalamp committed May 11, 2018
1 parent ee42eef commit b68dc54
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ PAGE_FREEZER_API_KEY="API_KEY"
export WEB_MONITORING_DB_STAGING_URL="https://api-staging.monitoring.envirodatagov.org"
export WEB_MONITORING_DB_STAGING_EMAIL=""
export WEB_MONITORING_DB_STAGING_PASSWORD=""

# This is used in diffing_server
export TORNADO_DEBUG_MODE="False"
3 changes: 2 additions & 1 deletion web_monitoring/diffing_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from docopt import docopt
import hashlib
import inspect
import os
import re
import tornado.gen
import tornado.httpclient
Expand Down Expand Up @@ -233,7 +234,7 @@ class BoundDiffHandler(DiffHandler):
return tornado.web.Application([
(r"/([A-Za-z0-9_]+)", BoundDiffHandler),
(r"/", IndexHandler),
])
], debug=os.environ.get('TORNADO_DEBUG_MODE', 'False'))


def start_app(port):
Expand Down

0 comments on commit b68dc54

Please sign in to comment.