ERP/deploy/systemd/prod-mgmt.service

13 lines
492 B
SYSTEMD
Raw Normal View History

[Unit]
Description=Production Management Flask App
After=network.target
[Service]
WorkingDirectory=/home/hyx/work/生产管理系统
2026-01-03 11:18:40 +00:00
# 使用Flask但启用多线程和Keep-Alive
ExecStart=/home/hyx/work/.venv/bin/python server/app.py
Restart=always
Environment=APP_SECRET=please-change-to-strong ADMIN_PASSWORD=change-this SUPERADMIN_USERNAME=zzh SUPERADMIN_PASSWORD=Zzh08165511 REDIS_HOST=127.0.0.1 REDIS_PORT=6379 REDIS_DB=0 REDIS_PASSWORD=Zzh08165511
[Install]
WantedBy=multi-user.target