Files
opengineer 0326c87c00 BIZ-72: 双色球系统部署文档与配置文件
- systemd 服务文件 (lotto-web.service)
- cron 抓取脚本 (fetch_daily.sh)
- 部署文档 (DEPLOY.md)
- 依赖清单 (requirements.txt)
2026-06-29 00:19:14 +08:00

16 lines
494 B
Desktop File

[Unit]
Description=双色球数据抓取 Web 服务
After=network.target
[Service]
Type=simple
User=vincent
WorkingDirectory=/home/vincent/Studio/lottoData
ExecStart=/home/vincent/Studio/lottoData/venv/bin/python3 /home/vincent/Studio/lottoData/web_executor.py
ExecStartPre=/home/vincent/Studio/lottoData/venv/bin/python3 -c "import flask; import pandas; import openpyxl; import requests; import bs4"
Restart=on-failure
RestartSec=5
KillMode=control-group
[Install]
WantedBy=multi-user.target