forked from codeperfectplus/SystemGuard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.py
24 lines (19 loc) · 835 Bytes
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from src.config import app, db
from src import routes
def register_routes():
app.register_blueprint(routes.homepage_bp)
app.register_blueprint(routes.settings_bp)
app.register_blueprint(routes.system_health_bp)
app.register_blueprint(routes.cpu_info_bp)
app.register_blueprint(routes.disk_info_bp)
app.register_blueprint(routes.memory_info_bp)
app.register_blueprint(routes.network_info_bp)
app.register_blueprint(routes.speedtest_bp)
app.register_blueprint(routes.process_bp)
if __name__ == "__main__":
register_routes()
# # Start the memory-consuming program in a separate thread
# memory_thread = threading.Thread(target=memory_consuming_program, daemon=True)
# memory_thread.start()
# Run the Flask application
app.run(host="0.0.0.0", port=5000, debug=True)