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)
|
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__":
|
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)
|
||||||
|
|
|
||||||
4
poetry.lock
generated
4
poetry.lock
generated
|
|
@ -281,7 +281,7 @@ marshmallow = "^3.4.0"
|
||||||
webargs = "^5.5.3"
|
webargs = "^5.5.3"
|
||||||
|
|
||||||
[package.source]
|
[package.source]
|
||||||
reference = "028e21cb5b53cc8feeea3af7a0579fde67a54daf"
|
reference = "2abec0a200e3dbeb8afc8549342328be2357578e"
|
||||||
type = "git"
|
type = "git"
|
||||||
url = "https://github.com/labthings/python-labthings.git"
|
url = "https://github.com/labthings/python-labthings.git"
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|
@ -700,7 +700,7 @@ version = "1.11.2"
|
||||||
rpi = ["picamera", "RPi.GPIO"]
|
rpi = ["picamera", "RPi.GPIO"]
|
||||||
|
|
||||||
[metadata]
|
[metadata]
|
||||||
content-hash = "ad29f5c7d3a9ac55697f3d74f7b1c992cb2617039cbcab23caa0221f8ed4718a"
|
content-hash = "4058356cd5db8d9653dd5f7204d691ca07a108936b76136d7332d6eba83029b6"
|
||||||
python-versions = "^3.6"
|
python-versions = "^3.6"
|
||||||
|
|
||||||
[metadata.files]
|
[metadata.files]
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ picamera = { git = "https://github.com/rwb27/picamera.git", branch = "master", o
|
||||||
"RPi.GPIO" = { version = "^0.6.5", optional = true }
|
"RPi.GPIO" = { version = "^0.6.5", optional = true }
|
||||||
pyserial = "^3.4" # Used for sangaboard (basic_serial_instrument) until we move to sangaboard pip library
|
pyserial = "^3.4" # Used for sangaboard (basic_serial_instrument) until we move to sangaboard pip library
|
||||||
|
|
||||||
labthings = { git = "https://github.com/labthings/python-labthings.git", branch = "master"} # TODO: Pin to a fixed version before 2.0.0 stable
|
labthings = { git = "https://github.com/labthings/python-labthings.git", branch = "sockets-testing"} # TODO: Pin to a fixed version before 2.0.0 stable
|
||||||
python-dateutil = "^2.8"
|
python-dateutil = "^2.8"
|
||||||
psutil = "^5.6.7" # Autostorage extension
|
psutil = "^5.6.7" # Autostorage extension
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue