summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorying.yunlong <ying.yunlong@zte.com.cn>2017-09-21 13:40:21 +0800
committerying.yunlong <ying.yunlong@zte.com.cn>2017-09-21 13:40:21 +0800
commitfdc28fca35ff82bd05486a21ebedb5799203e263 (patch)
tree58b87c67fe4ff6a47b4cb171d75198420cb9dc30
parent70baa47927aeb5f4562172651d21b47fd56bb19e (diff)
Update vfc-gvnfm-vnfres 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: I233a559fabf07a715c9f91123bb02c1d142ddcb9 Issue-ID: VFC-409 Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
-rwxr-xr-xres/run.sh3
-rwxr-xr-xres/stop.sh3
2 files changed, 2 insertions, 4 deletions
diff --git a/res/run.sh b/res/run.sh
index 14c51d3..d7f285e 100755
--- a/res/run.sh
+++ b/res/run.sh
@@ -13,5 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-
-nohup python manage.py runserver 127.0.0.1:8802 > /dev/null &
+nohup python manage.py runserver 0.0.0.0:8802 > /dev/null &
diff --git a/res/stop.sh b/res/stop.sh
index 2b65ea8..1f02a0d 100755
--- a/res/stop.sh
+++ b/res/stop.sh
@@ -13,5 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-
-ps auxww | grep 'manage.py runserver 127.0.0.1:8802' | awk '{print $2}' | xargs kill -9
+ps auxww | grep 'manage.py runserver 0.0.0.0:8802' | awk '{print $2}' | xargs kill -9