diff --git a/backend/nixpacks.toml b/backend/nixpacks.toml deleted file mode 100644 index 7889ce6..0000000 --- a/backend/nixpacks.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Nixpacks configuration for the FastAPI backend - -[phases.setup] -nixpkgsArchive = "88a9d1386465831607986442fd9c8c0e7a1b2f5" -aptPkgs = ["git"] - -[phases.install] -# Nixpacks auto-detects Python and runs pip install -r requirements.txt - -[build] - -[deploy] -startCommand = "uvicorn backend.app.main:app --host 0.0.0.0 --port 8000" diff --git a/docs/deployment/coolify.md b/docs/deployment/coolify.md index 5e7ecc2..5d1d121 100644 --- a/docs/deployment/coolify.md +++ b/docs/deployment/coolify.md @@ -29,7 +29,7 @@ Coolify's built-in reverse proxy routes traffic: 3. Select the `ai.allucanget.biz` repository 4. Choose the `main` branch 5. Set **Build Pack** to `nixpacks` -6. Set **Base Directory** to `/backend` +6. **CRITICAL: Set Base Directory to `/backend`** — this tells Nixpacks to look in the `backend/` subdirectory for `requirements.txt` and the Python application 7. Set **Ports Exposed** to `8000` 8. Set **Start Command** to: ```txt @@ -37,6 +37,8 @@ Coolify's built-in reverse proxy routes traffic: ``` 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. + ### Backend Environment Variables Add these as **Runtime** environment variables in Coolify: @@ -55,7 +57,7 @@ Add these as **Runtime** environment variables in Coolify: 2. Select the same repository 3. Choose the `main` branch 4. Set **Build Pack** to `nixpacks` -5. Set **Base Directory** to `/frontend` +5. **CRITICAL: Set Base Directory to `/frontend`** — this tells Nixpacks to look in the `frontend/` subdirectory for `requirements.txt` and the Python application 6. Set **Ports Exposed** to `5000` 7. Set **Start Command** to: ```txt @@ -63,6 +65,8 @@ Add these as **Runtime** environment variables in Coolify: ``` 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. + ### Frontend Environment Variables Add these as **Runtime** environment variables in Coolify: diff --git a/frontend/nixpacks.toml b/frontend/nixpacks.toml deleted file mode 100644 index ab05610..0000000 --- a/frontend/nixpacks.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Nixpacks configuration for the Flask frontend - -[phases.setup] -nixpkgsArchive = "88a9d1386465831607986442fd9c8c0e7a1b2f5" -aptPkgs = ["git"] - -[phases.install] -# Nixpacks auto-detects Python and runs pip install -r requirements.txt - -[build] - -[deploy] -startCommand = "gunicorn frontend.app.main:app --bind 0.0.0.0:5000 --workers 2 --timeout 120" diff --git a/nixpacks.toml b/nixpacks.toml deleted file mode 100644 index acc6c68..0000000 --- a/nixpacks.toml +++ /dev/null @@ -1,14 +0,0 @@ -# Nixpacks configuration for ai.allucanget.biz -# Shared settings for both backend and frontend services - -[phases.setup] -nixpkgsArchive = "88a9d1386465831607986442fd9c8c0e7a1b2f5" -aptPkgs = ["git"] - -[phases.install] -# Nixpacks auto-detects Python and runs pip install -r requirements.txt -# No custom commands needed here - -[build] - -[deploy]