From ae7727c01aeafd2296a56094ac263564d6e3c4d1 Mon Sep 17 00:00:00 2001 From: zwitschi Date: Mon, 27 Apr 2026 21:02:42 +0200 Subject: [PATCH] Update Coolify deployment guide to reflect changes in start commands and clarify Base Directory behavior for backend and frontend services. Co-authored-by: Copilot --- docs/deployment/coolify.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/deployment/coolify.md b/docs/deployment/coolify.md index 5d1d121..966f131 100644 --- a/docs/deployment/coolify.md +++ b/docs/deployment/coolify.md @@ -33,11 +33,11 @@ Coolify's built-in reverse proxy routes traffic: 7. Set **Ports Exposed** to `8000` 8. Set **Start Command** to: ```txt - uvicorn backend.app.main:app --host 0.0.0.0 --port 8000 + uvicorn app.main:app --host 0.0.0.0 --port 8000 ``` 9. Click **Create Resource** -> **Note:** Nixpacks auto-detects Python from `requirements.txt`. No `nixpacks.toml` file is needed. The Base Directory setting is the key configuration — without it, Nixpacks looks at the repository root and won't find the Python project. +> **Important:** Nixpacks copies the **contents** of the Base Directory to `/app/` in the container. When Base Directory is `/backend`, the `backend/` folder wrapper is removed — only `app/`, `tests/`, and `requirements.txt` are copied. Therefore the start command uses `app.main:app` (not `backend.app.main:app`). ### Backend Environment Variables @@ -61,11 +61,11 @@ Add these as **Runtime** environment variables in Coolify: 6. Set **Ports Exposed** to `5000` 7. Set **Start Command** to: ```txt - gunicorn frontend.app.main:app --bind 0.0.0.0:5000 --workers 2 --timeout 120 + gunicorn app.main:app --bind 0.0.0.0:5000 --workers 2 --timeout 120 ``` 8. Click **Create Resource** -> **Note:** Nixpacks auto-detects Python from `requirements.txt`. No `nixpacks.toml` file is needed. The Base Directory setting is the key configuration — without it, Nixpacks looks at the repository root and won't find the Python project. +> **Important:** Nixpacks copies the **contents** of the Base Directory to `/app/` in the container. When Base Directory is `/frontend`, the `frontend/` folder wrapper is removed — only `app/`, `tests/`, and `requirements.txt` are copied. Therefore the start command uses `app.main:app` (not `frontend.app.main:app`). ### Frontend Environment Variables