james-brattin / astro-blog

Blog using Astro

Home Page:https://astroblog.jamesbrattin.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Astro Blog

Netlify Status

Personal blog built with Astro.

Deployment

Two main ways to deploy:

  • Manually build with npm run build and then copy the contents of /dist
  • Use docker

To use docker:

  1. Build docker image, run docker build -t <your-image-name> .
  2. Run the image locally, or deploy to a platform
    • To run docker container locally, run docker run -p <local-port>:<container-port> <your-image-name>

The Dockerfile will spin up a Nginx server that exposes port 8080 (container-port).


Development

This section is just notes for myself.

Maintenance

To update Astro, run npm install astro@latest

To update Preact integration, run npm install @astrojs/preact@latest

About

Blog using Astro

https://astroblog.jamesbrattin.dev


Languages

Language:Astro 70.3%Language:JavaScript 10.4%Language:CSS 9.2%Language:Dockerfile 5.8%Language:TypeScript 4.3%