Files
lianghua/deploy/a-stock-timeline.service
T

19 lines
493 B
Desktop File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[Unit]
Description=JQuant A股时间线实时采集与分析服务(B/S)
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
# 部署路径按实际调整(git clone linux-web 分支后的目录)
WorkingDirectory=/opt/a_stock_timeline
ExecStart=/opt/a_stock_timeline/venv/bin/python -m src.web.server
Restart=always
RestartSec=5
User=www-data
Environment=PORT=8100
# 日志进 journaldjournalctl -u a-stock-timeline -f
[Install]
WantedBy=multi-user.target