1
0
This repository has been archived on 2025-11-01. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
contaminus/backend/fastapi/run.py
2025-03-02 22:51:31 +01:00

15 lines
333 B
Python

import subprocess
def run_api():
try:
subprocess.run(
['uvicorn', 'main:app', '--reload', '--port', '9091'],
check=True,
cwd='./'
)
except subprocess.CalledProcessError as e:
print(f"Error al iniciar API DAD: {e.stderr}")
if __name__ == "__main__":
run_api()