mirror of
https://github.com/complexcaresolutions/dak.c2s.git
synced 2026-03-17 14:53:41 +00:00
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>
17 lines
485 B
Desktop File
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
|