import subprocess | |
import uvicorn | |
import asyncio | |
subprocess.run("loop = asyncio.get_event_loop()", shell=True) | |
subprocess.run("loop.run_until_complete(uvicorn modules.app:app --host 0.0.0.0 --port 8000)", shell=True) |
import subprocess | |
import uvicorn | |
import asyncio | |
subprocess.run("loop = asyncio.get_event_loop()", shell=True) | |
subprocess.run("loop.run_until_complete(uvicorn modules.app:app --host 0.0.0.0 --port 8000)", shell=True) |