nova-api/cli/__main__.py
2023-07-19 23:51:28 +02:00

6 lines
151 B
Python

import sys
import os
port = sys.argv[1] if len(sys.argv) > 1 else 2333
os.system(f'cd api && uvicorn main:app --reload --host 0.0.0.0 --port {port}')