Commit bab01c9d authored by Taddeus Kroes's avatar Taddeus Kroes

Updated address/port to kompiler.org, removed JS minification

parent 8ee7c72a
ALL := scripts.js ALL := monitor.js
.PHONY: all .PHONY: all
...@@ -7,8 +7,5 @@ all: $(ALL) ...@@ -7,8 +7,5 @@ all: $(ALL)
%.js: %.coffee %.js: %.coffee
coffee --compile --output $(@D) $< coffee --compile --output $(@D) $<
scripts.js: json2.js monitor.js
cat $^ | yui-compressor --type js --output $@
clean: clean:
rm -f $(ALL) $(patsubst %.coffee,%.js,$(wildcard *.coffee)) rm -f $(ALL)
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
<span id="disk" class="right">-</span> <span id="disk" class="right">-</span>
</div> </div>
</div> </div>
<script src="scripts.js" type="text/javascript"></script> <script src="json2.js" type="text/javascript"></script>
<script src="monitor.js" type="text/javascript"></script>
</body> </body>
</html> </html>
...@@ -5,7 +5,7 @@ values = (e for e in el('content').getElementsByTagName('span')) \ ...@@ -5,7 +5,7 @@ values = (e for e in el('content').getElementsByTagName('span')) \
connect = -> connect = ->
val.innerHTML = 'Connecting...' for val in values val.innerHTML = 'Connecting...' for val in values
ws = new WebSocket 'ws://localhost:12345' ws = new WebSocket 'ws://kompiler.org:8100'
ws.onopen = -> ws.onopen = ->
console.log 'open' console.log 'open'
......
...@@ -63,7 +63,7 @@ def stats(): ...@@ -63,7 +63,7 @@ def stats():
if __name__ == '__main__': if __name__ == '__main__':
server = websocket(extensions=[WebkitDeflateFrame()]) server = websocket(extensions=[WebkitDeflateFrame()])
server.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) server.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
server.bind(('', 12345)) server.bind(('', 8100))
server.listen(5) server.listen(5)
clients = [] clients = []
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment