Skip to content

Commit 3e3e470

Browse files
authored
Webclient fix
# Changes * Setting websocket port from config * provisioning script change
1 parent ca7f4c8 commit 3e3e470

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

_datafiles/html/public/webclient.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,8 @@ <h3>Volume Controls</h3>
299299
socket.close();
300300
return;
301301
}
302-
debugLog("Connecting to: " + 'ws://'+location.host +':{{ .WebPort }}/ws');
303-
socket = new WebSocket('ws://'+location.host +':{{ .WebPort }}/ws');
302+
debugLog("Connecting to: " + 'ws://'+location.host +':{{ $config.WebPort }}/ws');
303+
socket = new WebSocket('ws://'+location.host +':{{ $config.WebPort }}/ws');
304304

305305
socket.onopen = function() {
306306
term.writeln("Connected to the server!");

provisioning/copy-rpi.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ scp ./${RPI_BIN} ${RPI_HOST}:${RPI_HOST_PATH}/mud/${RPI_BIN} && \
2020

2121
echo "Starting Server on RaspPi: ${RPI_HOST}"
2222
rm ${RPI_BIN} && \
23-
ssh ${RPI_HOST} -f 'cd ${RPI_HOST_PATH}; ./startup-run-mud.sh'
23+
ssh ${RPI_HOST} -f 'cd ${RPI_HOST_PATH}; sudo ./startup-run-mud.sh'

0 commit comments

Comments
 (0)