0326c87c00
- systemd 服务文件 (lotto-web.service) - cron 抓取脚本 (fetch_daily.sh) - 部署文档 (DEPLOY.md) - 依赖清单 (requirements.txt)
16 lines
494 B
Desktop File
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 |