Remove Nixpacks configuration files for backend and frontend; update Coolify deployment guide to reflect changes in directory structure and configuration requirements.
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
@@ -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"
|
||||
@@ -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:
|
||||
|
||||
@@ -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"
|
||||
@@ -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]
|
||||
Reference in New Issue
Block a user