From: yangyan Date: Mon, 8 Apr 2019 09:42:06 +0000 (+0800) Subject: fix the bug of catalog X-Git-Tag: 1.3.0~43 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F97%2F84497%2F1;p=vfc%2Fnfvo%2Fcatalog.git fix the bug of catalog Change-Id: Ia44819366036c27a06a8c92f05bb28fdf9c53d33 Issue-ID: VFC-1339 Signed-off-by: yangyan --- diff --git a/docker/instance_init.sh b/docker/instance_init.sh index 7dde8c72..3fb9a8e0 100755 --- a/docker/instance_init.sh +++ b/docker/instance_init.sh @@ -28,6 +28,6 @@ GET_CATALOG_DB="show databases like 'nfvocatalog';" CATALOG_DB=`mysql -u$MYSQL_ROOT_USER -p$MYSQL_ROOT_PASSWORD -P$MYSQL_PORT -h$MYSQL_IP -e "GET_CATALOG_DB"` if [[ "$CATALOG_DB" == "" ]]; then create_database - + migrate_database fi -migrate_database + diff --git a/run.sh b/run.sh index c4849d3a..c7e16e43 100755 --- a/run.sh +++ b/run.sh @@ -19,7 +19,7 @@ if [ ! -x $logDir ]; then fi # nohup python manage.py runserver 0.0.0.0:8806 > /dev/null & -nohup uwsgi --http :8806 -t 120 --module lcm.wsgi --master --processes 4 & +nohup uwsgi --http :8806 -t 120 --module catalog.wsgi --master --processes 4 & while [ ! -f $logDir/runtime_catalog.log ]; do sleep 1