aboutsummaryrefslogtreecommitdiff
path: root/server.py
diff options
context:
space:
mode:
authorMartin Ashby <martin@martin-laptop.lan>2018-05-17 18:28:38 +0100
committerMartin Ashby <martin@martin-laptop.lan>2018-05-17 18:28:38 +0100
commite9ee34abf84a10911b2c6041534c2df7f91f052a (patch)
tree73621cc657cf25fa0e45656fc1c4bffb8aac7c14 /server.py
parent89edc8828065f482fc8ef02d2182ed91f6bf0b24 (diff)
downloadunicornpaint-e9ee34abf84a10911b2c6041534c2df7f91f052a.tar.gz
unicornpaint-e9ee34abf84a10911b2c6041534c2df7f91f052a.tar.bz2
unicornpaint-e9ee34abf84a10911b2c6041534c2df7f91f052a.tar.xz
unicornpaint-e9ee34abf84a10911b2c6041534c2df7f91f052a.zip
server will now serve static files
Diffstat (limited to 'server.py')
-rw-r--r--server.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/server.py b/server.py
index e610f57..47bc931 100644
--- a/server.py
+++ b/server.py
@@ -22,7 +22,7 @@ LOAD = 'LOAD'
# GLobal references to app & clients
all_clients = set()
-app = Flask(__name__, static_folder='build/')
+app = Flask(__name__, static_folder='')
sockets = Sockets(app)
def send_state():
@@ -71,7 +71,7 @@ def load(saveName):
for y, pixel in enumerate(row):
unicorn.set_pixel(x, y, *pixel)
unicorn.show()
-
+
@sockets.route('/ws')
def do_websocket(websocket):
global all_clients