summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorying.yunlong <ying.yunlong@zte.com.cn>2017-09-21 13:20:12 +0800
committerying.yunlong <ying.yunlong@zte.com.cn>2017-09-21 13:20:12 +0800
commite3bb1049452638f20e2d229e8e607893375490c8 (patch)
tree1c67e4979d430d8ddda3627a621f6110ffa7e822
parentaafeac628af86360912493ec677debfd8f8b0d1f (diff)
Update vfc-gvnfm-vnfmgr run.sh and stop.sh
Listen to all native addresses when you start the Django service, so that you can accept rest requests for all local addresses Change-Id: Ie9751ce08cf5cdfbe42d24163efba4a05b0fb42d Issue-ID: VFC-405 Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
-rwxr-xr-xmgr/run.sh3
-rwxr-xr-xmgr/stop.sh3
2 files changed, 4 insertions, 2 deletions
diff --git a/mgr/run.sh b/mgr/run.sh
index 451d6d7..38132cd 100755
--- a/mgr/run.sh
+++ b/mgr/run.sh
@@ -12,4 +12,5 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-nohup python manage.py runserver 127.0.0.1:8803 > /dev/null &
+
+nohup python manage.py runserver 0.0.0.0:8803 > /dev/null &
diff --git a/mgr/stop.sh b/mgr/stop.sh
index e2421d2..6a18e20 100755
--- a/mgr/stop.sh
+++ b/mgr/stop.sh
@@ -12,4 +12,5 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-ps auxww | grep 'manage.py runserver 127.0.0.1:8803' | awk '{print $2}' | xargs kill -9
+
+ps auxww | grep 'manage.py runserver 0.0.0.0:8803' | awk '{print $2}' | xargs kill -9