From 6367856ee0135601a5af33a7dcac5f018136313b Mon Sep 17 00:00:00 2001 From: Quentin De Coninck Date: Fri, 10 Jun 2016 13:52:27 +0200 Subject: [PATCH] mpExperienceEpload: use apache With HTTPSimpleServer, issue with lot of connections --- src/mpExperienceEpload.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mpExperienceEpload.py b/src/mpExperienceEpload.py index d9841d8..2497fc0 100644 --- a/src/mpExperienceEpload.py +++ b/src/mpExperienceEpload.py @@ -42,7 +42,7 @@ class MpExperienceEpload(MpExperience): MpExperienceEpload.SERVER_LOG ) def getHTTPServerCmd(self): - s = "python -m SimpleHTTPServer 8123 &>" + MpExperienceEpload.SERVER_LOG + " &" + s = "/etc/init.d/apache2 restart &>" + MpExperienceEpload.SERVER_LOG + " &" print(s) return s @@ -63,14 +63,14 @@ class MpExperienceEpload(MpExperience): " sed -i 's/@host@/" + self.mpConfig.getServerIP() + "/' " + \ "$f; done" print(s) - return s + return s def getSubBackHostCmd(self): s = "for f in `ls " + self.epload_test_dir + "/*`; do " + \ " sed -i 's/" + self.mpConfig.getServerIP() + "/@host@/' " + \ "$f; done" print(s) - return s + return s def clean(self): MpExperience.clean(self)