File size: 456 Bytes
f6771af
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"""Dev server: real Witness Engine + FastAPI on uvicorn."""
from __future__ import annotations
import os
import uvicorn
from .app import build_app
from .api import deps


def main():
    app = build_app(use_fake_witness=False)
    deps.init_real_witness_engine()
    host = os.environ.get("HOST", "0.0.0.0")
    port = int(os.environ.get("PORT", "7860"))
    uvicorn.run(app, host=host, port=port, log_level="info")


if __name__ == "__main__":
    main()