This the Dashboard Web app for MIS software at WRLDC
- run setup_env.bat file to setup virtual environment
- download nssm from https://nssm.cc/download
- In the 'Path' system environment variable, add the path of nssm.exe, so that nssm.exe can be recognized in command line
- run setup_service.bat file to run the flask server as a background service
- Optionally use run_server.bat, if we desire to run the server via command line
- https://www.techcoil.com/blog/how-to-use-nssm-to-run-a-python-3-application-as-a-windows-service-in-its-own-python-3-virtual-environment/
- https://nssm.cc/usage
nssm.exe install mis_dashboard "path\to\run_server.bat"
nssm.exe edit mis_dashboard
nssm.exe set mis_dashboard AppStdout "path\to\app_output.log"
nssm.exe set mis_dashboard AppStderr "path\to\app_output.log"
sc start svc_name
sc delete svc_name
sc pause svc_name
sc stop svc_name
sc query svc_name
-
Run flask app as a windows service using pywin32 module - https://stackoverflow.com/questions/23550067/deploy-flask-app-as-windows-service
-
Run flask app pyinstaller exe file as a windows service - https://stackoverflow.com/questions/55677165/python-flask-as-windows-service