Skip to content
AugustTree

Deploying a static Astro blog to a Linux server

A short note on shipping an Astro-generated static site with Nginx on Linux.

Deploy 1 min read

Astro works very well for personal sites because it can output a fully static build.

The usual deployment flow looks like this:

  1. Run npm run build locally
  2. Upload the generated dist/ directory to the server
  3. Point Nginx to the deployed directory
  4. Configure HTTPS with Let’s Encrypt

For a single personal blog, this approach is simple, fast, and easy to maintain.

I also keep a local deploy script in this project so that publishing a new post is just one command.

© 2026 AugustTree. Notes for future reuse.

Built with Astro · Theme Chirping Astro