Sets production environment variable

This commit is contained in:
Aaron Louie 2020-04-15 17:22:41 -04:00
parent 2a15f3a488
commit b4fdba0fc9
1 changed files with 1 additions and 0 deletions

View File

@ -7,6 +7,7 @@ NAME = "CR Connect Workflow"
CORS_ENABLED = False CORS_ENABLED = False
DEVELOPMENT = environ.get('DEVELOPMENT', default="true") == "true" DEVELOPMENT = environ.get('DEVELOPMENT', default="true") == "true"
TESTING = environ.get('TESTING', default="false") == "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_HOST = environ.get('DB_HOST', default="localhost")
DB_PORT = environ.get('DB_PORT', default="5432") DB_PORT = environ.get('DB_PORT', default="5432")