ERP/deploy/systemd/prod-mgmt.service

12 lines
447 B
Desktop File

[Unit]
Description=Production Management Flask App
After=network.target
[Service]
WorkingDirectory=/home/hyx/work/生产管理系统
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