From 33035a1ea93ae655793ef3107b8e5cb5d753d735 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 14 Mar 2024 14:54:50 +0100 Subject: [PATCH] Add Astro to deployment options --- README.md | 1 + astro/server/README.md | 6 +++--- astro/static/README.md | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ea849b9..be1b910 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ This repository contains examples of how to deploy applications using Coolify. - [x] Docker Compose - [x] Nuxt - [x] Bun +- [x] Astro - [ ] Rails - [ ] Django - [ ] Laravel diff --git a/astro/server/README.md b/astro/server/README.md index 48aae30..e388a75 100644 --- a/astro/server/README.md +++ b/astro/server/README.md @@ -1,8 +1,8 @@ # Coolify Configuration -Static build: `{"output":"static"}` +Check [astro.config.mjs](./astro.config.mjs). -1. Use `Nixpacks` +1. Use `Nixpacks`. 2. Set `Ports Exposed` to `4321` (or any port you set in your `astro.config.mjs` file) 3. Set `Start Command` to `HOST=0.0.0.0 node dist/server/entry.mjs` - - Alternatively, you can set the `start script` inside `package.json` to `HOST=0.0.0.0 node dist/server/entry.mjs`. Then Nixpacks will automatically use it as the start command. + - Alternatively, you can set the `start` script inside `package.json` to `HOST=0.0.0.0 node dist/server/entry.mjs`. Then Nixpacks will automatically use it as the start command. diff --git a/astro/static/README.md b/astro/static/README.md index 147cfa4..a71cbdb 100644 --- a/astro/static/README.md +++ b/astro/static/README.md @@ -1,7 +1,7 @@ # Coolify Configuration -Static build: `{"output":"static"}` +Check [astro.config.mjs](./astro.config.mjs). -1. Use `Nixpacks` +1. Use `Nixpacks`. 2. Turn on `Is it a static site?`. 3. Set `Publish Directory` to `/dist`. \ No newline at end of file