Hi @provencho,
Finally I could run remote debug and hot deploy with fastAPI and uvicorn library.
Below code to run both debugpy debug server as well as uvicorn server. Code from main.py
if __name__ == "__main__":
print('Starting app...')
if(os.getenv('CURRENT_ENV', 'prod') == 'dev'):
print('Starting app in debugmode')
debugpy.listen(('0.0.0.0', 5678))
debugpy.wait_for_client()
uvicorn.run(
"main:app",
host="0.0.0.0",
port=8081,
reload=True
)