Add systemd service file and installation guide
Adds krafttrainer.service for running as a systemd unit and expands deployment.md with step-by-step instructions for both systemd and Docker deployment. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
17
krafttrainer.service
Normal file
17
krafttrainer.service
Normal file
@@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=Krafttrainer Web App
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=christoph
|
||||
WorkingDirectory=/home/christoph/krafttrainer
|
||||
ExecStart=/home/christoph/krafttrainer/krafttrainer
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
Environment=PORT=8090
|
||||
Environment=DB_PATH=/home/christoph/krafttrainer/krafttrainer.db
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user