I have made a python app in windows server, it used for face recognize as api. app can't open directly by double click on file.py , because it closed after run the app , it have made by fastapi (uvicorn) and Must be open forever !
I have made run_script.cmd :
cd C:\public_html\
python main.py
the cmd works good, but after run the main.py the window closed. in fact it' an api and Must be open forever !
please guide me to run app in start up as api server.