Hasty Briefsbeta

Bilingual

Hosting a Site on a Raspberry Pi

2 days ago
  • #Web Development
  • #Raspberry Pi
  • #Self-Hosting
  • Author built a website using Astro and hosts it on a Raspberry Pi due to a specific library compatibility issue with Vercel.
  • The setup involves forwarding the router's IP to the Raspberry Pi, using Caddy as a reverse proxy for the Node.js framework, and pointing the domain to the router's public IP.
  • After building the website, PM2 is used to run the Node.js app, and GitHub Actions automate updates by pulling changes, rebuilding, and restarting PM2 via a script.