diff --git a/Pipfile.lock b/Pipfile.lock index f0e0ee3b..57073dc4 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -768,7 +768,7 @@ "spiffworkflow": { "editable": true, "git": "https://github.com/sartography/SpiffWorkflow.git", - "ref": "d46213c9c20859b42ff26c12f852fd32a58d3280" + "ref": "d5f385f74ca2f755589aab2588333aa007d20852" }, "sqlalchemy": { "hashes": [ diff --git a/config/default.py b/config/default.py index 7b77c790..d999f3a8 100644 --- a/config/default.py +++ b/config/default.py @@ -5,8 +5,9 @@ basedir = os.path.abspath(os.path.dirname(__file__)) NAME = "CR Connect Workflow" CORS_ENABLED = False -DEVELOPMENT = bool(environ.get('DEVELOPMENT', default="True")) -TESTING = bool(environ.get('TESTING', default="False")) +DEVELOPMENT = environ.get('DEVELOPMENT', default="true") == "true" +TESTING = environ.get('TESTING', default="false") == "true" +PRODUCTION = (environ.get('PRODUCTION', default="false") == "true") or (not DEVELOPMENT and not TESTING) DB_HOST = environ.get('DB_HOST', default="localhost") DB_PORT = environ.get('DB_PORT', default="5432")