Skip to content

nagasudhirpulla/wrldc_mis_flask_ui

Repository files navigation

wrldc_mis_flask_ui

This the Dashboard Web app for MIS software at WRLDC

Setup instructions

  • 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

using nssm.exe to create python flask server as a background service in windows

create a windows service by name mis_dashboard

nssm.exe install mis_dashboard "path\to\run_server.bat"

editing a windows service by name mis_dashboard via nssm GUI

nssm.exe edit mis_dashboard

Setup output stream files for service name mis_dashboard

nssm.exe set mis_dashboard AppStdout "path\to\app_output.log"
nssm.exe set mis_dashboard AppStderr "path\to\app_output.log"

start/delete/pause/stop a service in windows

sc start svc_name
sc delete svc_name
sc pause svc_name
sc stop svc_name

see a service info in windows

sc query svc_name

run flask app as a windows service without nssm using pywin32

run an infinite loop as a service using pywin32

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published