From 189e2b6052057f884c6cfeec2ed41b051db37f27 Mon Sep 17 00:00:00 2001 From: Loyyd Date: Thu, 11 Jun 2026 08:43:14 +0200 Subject: [PATCH] no docker --- AGENTS.md | 9 +++------ README.md | 20 ++++++++++++++++---- compose.yaml | 8 -------- docker/default.conf.template | 31 ------------------------------- docs/SITE-STRUCTURE.md | 7 +++---- 5 files changed, 22 insertions(+), 53 deletions(-) delete mode 100644 compose.yaml delete mode 100644 docker/default.conf.template diff --git a/AGENTS.md b/AGENTS.md index 62d0bf0d..d6b40905 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -48,18 +48,15 @@ For Astro development: npm run dev ``` -For the Nginx preview: +For a production-style Astro preview: ```bash npm run build -``` - -```bash -docker compose up +npm run preview ``` Then open: ```text -http://localhost:8080/ +http://localhost:4321/ ``` diff --git a/README.md b/README.md index 5fd57692..0d7230cd 100644 --- a/README.md +++ b/README.md @@ -56,20 +56,32 @@ npm run render:layout ## Local Preview -Build the Astro output first: +Run Astro locally while editing: + +```bash +npm run dev +``` + +Then open Astro's local URL, usually: + +```text +http://localhost:4321/ +``` + +For a production-style Astro preview, build the static output first: ```bash npm run build ``` -Then serve `dist/` with Docker: +Then serve `dist/` with Astro preview: ```bash -docker compose up +npm run preview ``` Then open: ```text -http://localhost:8080/ +http://localhost:4321/ ``` diff --git a/compose.yaml b/compose.yaml deleted file mode 100644 index 824c8802..00000000 --- a/compose.yaml +++ /dev/null @@ -1,8 +0,0 @@ -services: - website: - image: nginx:alpine - ports: - - "${PORT:-8080}:80" - volumes: - - .:/usr/share/nginx/html:ro - - ./docker/default.conf.template:/etc/nginx/templates/default.conf.template:ro diff --git a/docker/default.conf.template b/docker/default.conf.template deleted file mode 100644 index 2591273a..00000000 --- a/docker/default.conf.template +++ /dev/null @@ -1,31 +0,0 @@ -server { - listen 80; - listen [::]:80; - - server_name _; - root /usr/share/nginx/html/dist; - index index.html; - - location ~ /\. { - return 404; - } - - location / { - try_files $uri $uri/ =404; - } - - location /assets/ { - alias /usr/share/nginx/html/dist/assets/; - try_files $uri =404; - } - - location /css/ { - alias /usr/share/nginx/html/dist/css/; - try_files $uri =404; - } - - location /js/ { - alias /usr/share/nginx/html/dist/js/; - try_files $uri =404; - } -} diff --git a/docs/SITE-STRUCTURE.md b/docs/SITE-STRUCTURE.md index 5d8b1d9e..6618bcb1 100644 --- a/docs/SITE-STRUCTURE.md +++ b/docs/SITE-STRUCTURE.md @@ -37,7 +37,6 @@ is kept in `website/`, while Astro emits the served site into `dist/`. - `scripts/copy-static-assets.mjs` - copies `assets/`, `css/`, and `js/` into `dist/` - `scripts/extract-content.mjs` - extracts dated post pages into `content/` - `scripts/extract-theme-css.mjs` - extracts repeated inline CSS into `css/theme.css` and `css/site.css` -- `docker/` and `compose.yaml` - local static server preview - `.forgejo/` - deployment automation ## Shared Layout @@ -80,15 +79,15 @@ Then open Astro's local URL, usually: http://localhost:4321 ``` -For the Nginx preview, build first: +For a production-style Astro preview, build first: ```bash npm run build -docker compose up +npm run preview ``` Then open: ```text -http://localhost:8080 +http://localhost:4321 ```