-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
41 lines (30 loc) 路 1.1 KB
/
Copy pathapp.py
File metadata and controls
41 lines (30 loc) 路 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/env python3
"""
WSGI entry point for Linux Kernel Visualization Backend.
Development: python app.py
Production: gunicorn -w 1 -b 0.0.0.0:8000 "kernel_ai.webapp:app"
or: gunicorn ... "app:app"
"""
from kernel_ai.config import Config
from kernel_ai.services.core_observability import get_system_info
from kernel_ai.webapp import app, create_app
__all__ = ["app", "create_app"]
if __name__ == "__main__":
system_info = get_system_info()
print("馃殌 Linux Kernel Visualization Backend")
print(f"馃搷 Platform: {system_info['platform']}")
print(f"馃惂 Kernel: {system_info['kernel']}")
print(f"馃寪 Server: http://127.0.0.1:5001")
print("馃搳 API endpoints:")
print(f" - {Config.API_PREFIX}/syscalls-realtime")
print(f" - {Config.API_PREFIX}/kernel-data")
print(f" - {Config.API_PREFIX}/process-kernel-map")
print(f" - {Config.API_PREFIX}/nginx-files")
print(f" - {Config.API_PREFIX}/execution-context")
print(" - /health")
app.run(
host="0.0.0.0",
port=5001,
debug=Config.DEBUG,
threaded=True,
)