File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ RUN apk add redis
12
12
RUN apk add nginx
13
13
14
14
RUN mkdir -p /run/nginx
15
- RUN npm install -g serve
15
+ RUN npm install -g http-server
16
16
17
17
# set the working directory in the container
18
18
WORKDIR /app
@@ -43,6 +43,6 @@ COPY redis.conf redis.conf
43
43
COPY settings.json ./settings.json
44
44
COPY ingress/ ./ingress
45
45
46
- EXPOSE 1883 6379 8099
46
+ EXPOSE 1883 3000 6379 8099
47
47
48
48
CMD ["python3" , "/app/startup.py" ]
Original file line number Diff line number Diff line change @@ -625,7 +625,7 @@ def findinv(networks):
625
625
outp .write ("}" )
626
626
WDPORT = int (setts ['Web_Dash_Port' ])
627
627
logger .info ("Serving Web Dashboard from port " + str (WDPORT ))
628
- command = shlex .split ("/usr/bin/node /usr/local/bin/serve -p " + str (WDPORT ))
628
+ command = shlex .split ("/usr/bin/node /usr/local/bin/http-server -p " + str (WDPORT ))
629
629
webDash = subprocess .Popen (command )
630
630
631
631
@@ -678,7 +678,7 @@ def findinv(networks):
678
678
os .chdir ("/app/WebDashboard" )
679
679
WDPORT = int (setts ['Web_Dash_Port' ])
680
680
logger .info ("Serving Web Dashboard from port " + str (WDPORT ))
681
- command = shlex .split ("/usr/bin/node /usr/local/bin/serve -p " + str (WDPORT ))
681
+ command = shlex .split ("/usr/bin/node /usr/local/bin/http-server -p " + str (WDPORT ))
682
682
webDash = subprocess .Popen (command )
683
683
684
684
if setts ['MQTT_Address' ]== "127.0.0.1" :
You can’t perform that action at this time.
0 commit comments