Some checks failed
Deploy API Server / build-and-deploy (push) Failing after 7s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
18 lines
331 B
Desktop File
18 lines
331 B
Desktop File
[Unit]
|
|
Description=ZhiXi RAG Worker
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=ubuntu
|
|
WorkingDirectory=/opt/zhixi/backend/rag-worker
|
|
Environment="PYTHONUNBUFFERED=1"
|
|
EnvironmentFile=/opt/zhixi/backend/rag-worker/.env
|
|
|
|
ExecStart=/usr/bin/python3.11 -u main.py
|
|
Restart=always
|
|
RestartSec=5
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|