Commit ffb56db4 authored by liuzheng712's avatar liuzheng712 Committed by ibuler

update fix websocket

parent 5e858976
.idea .idea
*.pyc *.pyc
*.pyo *.pyo
luna/keys/.access_key
600f6241-5574-407f-b39a-c616fb2b14eb:48496c51-08fd-4eca-8c47-68b18aad72e9
\ No newline at end of file
...@@ -3,12 +3,14 @@ ...@@ -3,12 +3,14 @@
from config import Config from config import Config
from luna import app from luna import app, socket_io
import subprocess # import subprocess
app.config.from_object(Config) app.config.from_object(Config)
host = app.config['BIND_HOST'] host = app.config['BIND_HOST']
port = app.config['LISTEN_PORT'] port = app.config['LISTEN_PORT']
if __name__ == '__main__': if __name__ == '__main__':
subprocess.call('gunicorn -k eventlet -b %s:%s -w 4 -n luna run_server:app' % (host, port), shell=True) # subprocess.call('gunicorn -k eventlet -b %s:%s -w 4 -n luna run_server:app' % (host, port), shell=True)
app.bootstrap()
socket_io.run(app, host='0.0.0.0')
\ No newline at end of file
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