nova-api/cli/__main__.py

6 lines
151 B
Python
Raw Normal View History

import sys
import os
2023-07-19 23:51:28 +02:00
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}')