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