dak.c2s/deploy/dak-backend.service
CCS Admin e9eb98119f feat: migrate database driver from MariaDB to PostgreSQL
Switch from pymysql to psycopg2-binary, update connection string to
postgresql+psycopg2, replace MySQL-specific JSON imports with generic
SQLAlchemy JSON, convert MySQL prefix index to PostgreSQL left() function,
and remove FetchedValue() (unnecessary with PostgreSQL).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-02 08:25:05 +00:00

17 lines
485 B
Desktop File

[Unit]
Description=DAK Zweitmeinungs-Portal Backend (FastAPI/Uvicorn)
After=network.target postgresql.service
[Service]
Type=simple
User=dak
Group=dak
WorkingDirectory=/opt/dak-portal/backend
Environment="PATH=/opt/dak-portal/backend/venv/bin:/usr/local/bin:/usr/bin"
EnvironmentFile=/opt/dak-portal/backend/.env
ExecStart=/opt/dak-portal/backend/venv/bin/uvicorn app.main:app --host 127.0.0.1 --port 8000 --workers 2
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target