Files
news-platform/deploy/systemd/news-deploy-hook.service
T
Artur MoreiraandPaperclip a8b71762d9 fix(news-platform): SSR domain routing, resilient homepage, Gitea deploy hook
- Forward X-Site-Host from Astro to the bridge so loopback calls use the public domain JSON
- Normalize newsproject.bitreport.pt.json (categories slug/label, wp on 127.0.0.1:8080)
- Degrade homepage/trending when WordPress is down instead of 500
- Extend webhook-deploy.sh for config/ and wordpress/ changes; add deploy-hook-server + systemd unit
- Document automatic Gitea webhook flow in docs/deployment.md; align DOMAINS_CONFIG_PATH env

Co-Authored-By: Paperclip <[email protected]>
Made-with: Cursor
2026-03-23 19:47:19 +00:00

15 lines
340 B
Desktop File

[Unit]
Description=News Platform — Gitea deploy webhook (runs webhook-deploy.sh)
After=network.target
[Service]
Type=simple
User=root
EnvironmentFile=-/etc/news-platform/deploy-hook.env
ExecStart=/usr/bin/node /opt/news-platform/deploy/scripts/deploy-hook-server.mjs
Restart=on-failure
RestartSec=3
[Install]
WantedBy=multi-user.target