fix db_host
This commit is contained in:
parent
fe33f2d7e7
commit
25f2287e98
|
@ -3,7 +3,7 @@
|
|||
DH_TOKEN = {{ token }}
|
||||
DH_URL = {{ url }}
|
||||
{% if erease_basic %}
|
||||
DH_HOST = {{ host }}
|
||||
DH_HOST = {{ api_host }}
|
||||
DH_DATABASE = {{ schema }}
|
||||
DEVICEHUB_URL = https://${DB_HOST}/${DB_DATABASE}/
|
||||
|
||||
|
@ -17,7 +17,7 @@ WB_ERASE_LEADING_ZEROS = False
|
|||
|
||||
WB_DEBUG = True
|
||||
{% elif baseline_erease %}
|
||||
DH_HOST = {{ host }}
|
||||
DH_HOST = {{ api_host }}
|
||||
DH_DATABASE = {{ schema }}
|
||||
DEVICEHUB_URL = https://${DB_HOST}/${DB_DATABASE}/
|
||||
|
||||
|
|
|
@ -68,6 +68,7 @@ class SettingsView(GenericMixin):
|
|||
url = "https://{}/actions/".format(app.config['API_HOST'])
|
||||
self.wbContext['url'] = url
|
||||
self.wbContext['host'] = app.config['HOST']
|
||||
self.wbContext['api_host'] = app.config['API_HOST']
|
||||
self.wbContext['schema'] = app.config['SCHEMA']
|
||||
|
||||
if self.opt == 'erease_basic':
|
||||
|
|
Reference in a new issue