First test of LabThings Gevent-based server
This commit is contained in:
parent
7182e9d5df
commit
c3eefa5c1d
3 changed files with 11 additions and 4 deletions
|
|
@ -167,5 +167,12 @@ def cleanup():
|
|||
|
||||
atexit.register(cleanup)
|
||||
|
||||
# if __name__ == "__main__":
|
||||
# app.run(host="0.0.0.0", port="5000", threaded=True, debug=True, use_reloader=False)
|
||||
|
||||
# Start the app
|
||||
if __name__ == "__main__":
|
||||
app.run(host="0.0.0.0", port="5000", threaded=True, debug=True, use_reloader=False)
|
||||
from labthings.server.wsgi import Server
|
||||
|
||||
server = Server(app)
|
||||
server.run(host="0.0.0.0", port=5000, debug=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue