|
@@ -33,8 +33,8 @@ async def run_server():
|
|
|
|
|
|
|
|
async def main():
|
|
async def main():
|
|
|
# await init_load_source().load_source()
|
|
# await init_load_source().load_source()
|
|
|
- await run_server()
|
|
|
|
|
- # await asyncio.gather(run_server(), init_load_source().load_source())
|
|
|
|
|
|
|
+ # await run_server()
|
|
|
|
|
+ await asyncio.gather(run_server(), init_load_source().load_source())
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
if __name__ == "__main__":
|
|
@@ -42,12 +42,12 @@ if __name__ == "__main__":
|
|
|
signal.signal(signal.SIGTERM, handle_shutdown)
|
|
signal.signal(signal.SIGTERM, handle_shutdown)
|
|
|
print("python server is running at port:", PORT)
|
|
print("python server is running at port:", PORT)
|
|
|
print("python server is running at port:", APP_RUN)
|
|
print("python server is running at port:", APP_RUN)
|
|
|
- # asyncio.run(main())
|
|
|
|
|
- isDebug = True if IS_DEBUG == "true" else False
|
|
|
|
|
- uvicorn.run(
|
|
|
|
|
- app=APP_RUN,
|
|
|
|
|
- host=APP_HOST,
|
|
|
|
|
- port=int(PORT),
|
|
|
|
|
- reload=isDebug,
|
|
|
|
|
- loop="auto",
|
|
|
|
|
- )
|
|
|
|
|
|
|
+ asyncio.run(main())
|
|
|
|
|
+ # isDebug = True if IS_DEBUG == "true" else False
|
|
|
|
|
+ # uvicorn.run(
|
|
|
|
|
+ # app=APP_RUN,
|
|
|
|
|
+ # host=APP_HOST,
|
|
|
|
|
+ # port=int(PORT),
|
|
|
|
|
+ # reload=isDebug,
|
|
|
|
|
+ # loop="auto",
|
|
|
|
|
+ # )
|