fix: load .env in production systemd service for chat API keys

- Add EnvironmentFile=/home/txeo/Git/yo/cv/.env to systemd unit
- Add production overrides (GO_ENV, BEHIND_PROXY, ALLOWED_ORIGINS)
- Deploy workflow now auto-updates systemd service file on each deploy
This commit is contained in:
juanatsap
2026-04-09 11:04:38 +01:00
parent 8e029d1363
commit 482350a924
2 changed files with 13 additions and 2 deletions
+5
View File
@@ -70,6 +70,11 @@ jobs:
# git stash pop || echo "⚠️ Could not reapply stash (conflicts?)"
# fi
# Update systemd service file if changed
echo "📋 Updating systemd service..."
sudo cp config/systemd/cv.service /etc/systemd/system/$SERVICE_NAME.service
sudo systemctl daemon-reload
echo "🔄 Restarting service..."
sudo systemctl restart $SERVICE_NAME