-1

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.

amin_pwa
  • 9
  • 4
  • You're basically asking how to run a Python script as a service, which can be done in several ways, as answered here https://stackoverflow.com/questions/32404/how-do-you-run-a-python-script-as-a-service-in-windows – Grismar May 24 '22 at 05:45

0 Answers0