put prod server

This commit is contained in:
quoije
2024-03-09 15:37:12 -05:00
parent 651c798d3a
commit 5e8e3cf603
4 changed files with 16 additions and 1 deletions
BIN
View File
Binary file not shown.
+10
View File
@@ -1,6 +1,7 @@
from flask import Flask, render_template, make_response, json
import app_obd, app_car, app_account, time
from app_events import socketio
from gevent.pywsgi import WSGIServer
app = Flask(__name__)
socketio.init_app(app)
@@ -25,3 +26,12 @@ def data():
response = make_response(json.dumps(data))
response.content_type = 'application/json'
return response
if __name__ == '__main__':
# Debug/Development
# app.run(debug=True, host="0.0.0.0", port="5000")
# Production
http_server = WSGIServer(('', 5000), app)
print("server on :5000")
http_server.serve_forever()
+2
View File
@@ -1,3 +1,5 @@
# yaris-obd #
![UI](https://github.com/quoije/yaris-obd/blob/698adee41532fed0ba1a7fe0ab83b26d569764cb/pics/ui.png)
python3 app.py
+3
View File
@@ -0,0 +1,3 @@
# yaris-obd #
![UI](https://github.com/quoije/yaris-obd/blob/698adee41532fed0ba1a7fe0ab83b26d569764cb/pics/ui.png)