5d2f763d2e
- Use 'go run .' instead of compiled binary - Single unified log file at /var/log/cv.log - Simpler configuration matching project philosophy
32 lines
592 B
Desktop File
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
|