fix the bug of catalog 97/84497/1
authoryangyan <yangyanyj@chinamobile.com>
Mon, 8 Apr 2019 09:42:06 +0000 (17:42 +0800)
committeryangyan <yangyanyj@chinamobile.com>
Mon, 8 Apr 2019 09:42:12 +0000 (17:42 +0800)
Change-Id: Ia44819366036c27a06a8c92f05bb28fdf9c53d33
Issue-ID: VFC-1339
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
docker/instance_init.sh
run.sh

index 7dde8c7..3fb9a8e 100755 (executable)
@@ -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 c4849d3..c7e16e4 100755 (executable)
--- 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