Deployment vorbereitet: systemd-Unit, Nginx-Vhost, Static unter /admin/static
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
15
deploy/qr-tabellen.service
Normal file
15
deploy/qr-tabellen.service
Normal file
@@ -0,0 +1,15 @@
|
||||
# /etc/systemd/system/qr-tabellen.service
|
||||
[Unit]
|
||||
Description=QR-Tabellen Admin-Panel (table.lehrstun.de)
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User=herb
|
||||
WorkingDirectory=/home/herb/qr-tabellen
|
||||
Environment=QT_BASE_URL=https://table.lehrstun.de
|
||||
Environment=QT_PUBLIC_DIR=/var/www/table
|
||||
ExecStart=/home/herb/qr-tabellen/venv/bin/gunicorn -w 2 -b 127.0.0.1:8010 app.main:app
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user