- [How-to] (https://follow-e-lo.com/2018/08/16/pywinservice-running-a-simpe-python-script-as-a-windows-service/)
Make an env
Make a script i.e like run.py
Test this:
Make a bat file, that will be started when the service starts (i.e 3 party libraries will start) activate the env: ~\pywinservice\Scripts\activate.bat
~\pywinservice\Scripts\activate.bat
Call the Python script file, ie run.py python app\run.py runserver
python app\run.py runserver
If test is success, install the service with Nssm:
* [Nssm] (https://nssm.cc/download) - NSSM - the Non-Sucking Service Manager
nssm install, navigate to your bat file, give the service a name
nssm install
Start the service with the name you made
### Note: This is just a quick and dirty way to run Python scripts as a windows service, but heey, it works and you can automate a lot of scripts!
### Build
TBD
Explain how to run the automated tests for this system
Explain what these tests test and why
Give an example
Explain what these tests test and why
Give an example
Add additional notes about how to deploy this on a live system:
Branch: master and test.
- spawnmarvel - Initial work -