genrecon-app.service 738 B

1234567891011121314151617181920212223
  1. [Unit]
  2. Description=GenRecon web app (PWA + reconstruction API)
  3. After=network.target
  4. [Service]
  5. Type=simple
  6. WorkingDirectory=/opt/genrecon/app/backend
  7. Environment=GENRECON_JOBS_DIR=/srv/jobs
  8. Environment=GENRECON_FRONTEND_DIR=/opt/genrecon/app/frontend
  9. Environment=GENRECON_SAMPLE_GLB=/opt/genrecon/app/sample/scene.glb
  10. Environment=GENRECON_SRC=/opt/genrecon/src
  11. Environment=GENRECON_CKPTS=/opt/genrecon/ckpts
  12. Environment=GENRECON_CONDA_ENV=genrecon
  13. Environment=GENRECON_CUDA_DEVICE=5
  14. # Flip to 1 to serve the bundled demo scene without the GPU pipeline:
  15. Environment=GENRECON_MOCK=0
  16. ExecStart=/usr/bin/env bash -lc 'uvicorn app:app --host 0.0.0.0 --port 8000'
  17. Restart=on-failure
  18. RestartSec=3
  19. User=root
  20. [Install]
  21. WantedBy=multi-user.target