瀏覽代碼

listen on all ip addresses

Eren Yilmaz 6 年之前
父節點
當前提交
6c6ffaf3eb
共有 3 個文件被更改,包括 7 次插入28 次删除
  1. 6 1
      README.md
  2. 0 26
      letter_dist.csv
  3. 1 1
      run_server.py

+ 6 - 1
README.md

@@ -6,4 +6,9 @@ The client is intended to be compiled with
 ```
 pyinstaller run_client.py
 ```
-where `pyinstaller` can be installed using pip.
+where `pyinstaller` can be installed using pip.
+
+On the server you can install the required packages using pip:
+```
+pip3 install bottle requests
+```

+ 0 - 26
letter_dist.csv

@@ -1,26 +0,0 @@
-E,21912,12.02
-T,16587,9.1
-A,14810,8.12
-O,14003,7.68
-I,13318,7.31
-N,12666,6.95
-S,11450,6.28
-R,10977,6.02
-H,10795,5.92
-D,7874,4.32
-L,7253,3.98
-U,5246,2.88
-C,4943,2.71
-M,4761,2.61
-F,4200,2.3
-Y,3853,2.11
-W,3819,2.09
-G,3693,2.03
-P,3316,1.82
-B,2715,1.49
-V,2019,1.11
-K,1257,0.69
-X,315,0.17
-Q,205,0.11
-J,188,0.1
-Z,128,0.07

+ 1 - 1
run_server.py

@@ -42,5 +42,5 @@ if __name__ == '__main__':
             return server_controller.bad_request('Action violates database constraints.')
 
 
-    run(host='localhost', port=connection.port, debug=debug)
+    run(host='0.0.0.0', port=connection.port, debug=debug)
     model.connection.disconnect()