diff options
-rw-r--r-- | catalog/settings.py | 1 | ||||
-rwxr-xr-x | docker/instance_config.sh | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/catalog/settings.py b/catalog/settings.py index 30b7db08..c8f7e0b3 100644 --- a/catalog/settings.py +++ b/catalog/settings.py @@ -130,6 +130,7 @@ STATICFILES_DIRS = [ pub_config.CATALOG_ROOT_PATH = os.path.join(STATICFILES_DIRS[0], "catalog") pub_config.CATALOG_URL_PATH = "static/catalog" +pub_config.SDC_BASE_URL = "http://%s:%s/api" % (pub_config.MSB_SERVICE_IP, pub_config.MSB_SERVICE_PORT) # # LOGGING = { # 'version': 1, diff --git a/docker/instance_config.sh b/docker/instance_config.sh index c76770e3..4e29dc96 100755 --- a/docker/instance_config.sh +++ b/docker/instance_config.sh @@ -19,9 +19,9 @@ if [ $REDIS_HOST ]; then sed -i "s|REDIS_HOST.*|REDIS_HOST = '$REDIS_HOST'|" vfc/nfvo/catalog/catalog/pub/config/config.py fi -if [ $SDC_BASE_URL ]; then - sed -i "s|SDC_BASE_URL.*|SDC_BASE_URL = '$SDC_BASE_URL'|" vfc/nfvo/catalog/catalog/pub/config/config.py -fi +#if [ $SDC_BASE_URL ]; then +# sed -i "s|SDC_BASE_URL.*|SDC_BASE_URL = '$SDC_BASE_URL'|" vfc/nfvo/catalog/catalog/pub/config/config.py +#fi sed -i "s|DB_NAME.*|DB_NAME = 'nfvocatalog'|" vfc/nfvo/catalog/catalog/pub/config/config.py sed -i "s|DB_USER.*|DB_USER = 'nfvocatalog'|" vfc/nfvo/catalog/catalog/pub/config/config.py |