pip3 install flask
set FLASK_APP=auspix_service.py
flask run --host=0.0.0.0
I put the below content into a bat file auspix_serbice.bat
set FLASK_APP=auspix_service.py && flask run --host=0.0.0.0 >> C:/Auspix/logs/auspix_service_log.txt
And tried to add it into task scheduler (at system startup or daily...) but all cannot work as expected.
Then I added it into the startup folder according to this article
https://www.minitool.com/data-recovery/windows-11-startup-programs-folder.html
1. Press Windows + R, type shell:startup, and press Enter to open Windows 11 startup folder.
2. Create a shortcut for the bat file, and move the shortcut file into the startup folder. Now it works like a charm
No comments:
Post a Comment