Add Astro to deployment options

This commit is contained in:
Andras Bacsai
2024-03-14 14:54:50 +01:00
parent 1ec232c23e
commit 33035a1ea9
3 changed files with 6 additions and 5 deletions

View File

@@ -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.

View File

@@ -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`.