Files
cv-site/config/systemd/cv.service
T
root 5d2f763d2e Update systemd service to use go run with single log file
- Use 'go run .' instead of compiled binary
- Single unified log file at /var/log/cv.log
- Simpler configuration matching project philosophy
2025-10-30 13:05:36 +00:00

32 lines
592 B
Desktop File

[Unit]
Description=CV Website Service
After=network.target
Wants=network-online.target
[Service]
Type=simple
User=txeo
Group=txeo
WorkingDirectory=/home/txeo/Git/yo/cv
ExecStart=/usr/bin/go run .
# Environment variables
Environment="GO_ENV=production"
Environment="PORT=1999"
Environment="BASE_URL=https://juan.andres.morenorub.io"
Environment="VERSION=1.0.0"
# Restart policy
Restart=always
RestartSec=5
StartLimitInterval=60
StartLimitBurst=3
# Logging
StandardOutput=append:/var/log/cv.log
StandardError=append:/var/log/cv.log
SyslogIdentifier=cv
[Install]
WantedBy=multi-user.target