Run flask on PORT_0 environment variable, if defined.
This commit is contained in:
parent
091a1729f8
commit
183a2c5d66
|
@ -7,7 +7,7 @@ basedir = os.path.abspath(os.path.dirname(__file__))
|
|||
JSON_SORT_KEYS = False # CRITICAL. Do not sort the data when returning values to the front end.
|
||||
|
||||
NAME = "CR Connect Workflow"
|
||||
FLASK_PORT = environ.get('FLASK_PORT', default="5000")
|
||||
FLASK_PORT = environ.get('PORT_0') or environ.get('FLASK_PORT', default="5000")
|
||||
CORS_ALLOW_ORIGINS = re.split(r',\s*', environ.get('CORS_ALLOW_ORIGINS', default="localhost:4200, localhost:5002"))
|
||||
DEVELOPMENT = environ.get('DEVELOPMENT', default="true") == "true"
|
||||
TESTING = environ.get('TESTING', default="false") == "true"
|
||||
|
|
Loading…
Reference in New Issue