Skip to content

Commit 17872f4

Browse files
committed
corrigido: caminhos de generated/, config.ini e docker-compose apos reorganizacao
1 parent a636666 commit 17872f4

9 files changed

Lines changed: 367 additions & 56 deletions

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ docs/documentacao/*.md
166166

167167
# pastas específicas do projeto (não versionar)
168168
bibliografia/
169-
docs/
170169
.kanbn/
171170
.kanbn_boards/
172171
refs/

backend/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ compila parâmetros em arquivo `.bed` e `.bed.json`
5555
```json
5656
{
5757
"success": true,
58-
"bed_file": "output/leito_20251009_091500.bed",
59-
"json_file": "output/leito_20251009_091500.bed.json",
58+
"bed_file": "generated/configs/leito_20251009_091500.bed",
59+
"json_file": "generated/configs/leito_20251009_091500.bed.json",
6060
"message": "compilação bem-sucedida"
6161
}
6262
```
@@ -73,7 +73,7 @@ gera modelo 3d no blender (assíncrono)
7373

7474
```json
7575
{
76-
"json_file": "output/leito_20251009_091500.bed.json",
76+
"json_file": "generated/configs/leito_20251009_091500.bed.json",
7777
"open_blender": false
7878
}
7979
```
@@ -100,8 +100,8 @@ cria caso openfoam (assíncrono)
100100

101101
```json
102102
{
103-
"json_file": "output/leito_20251009_091500.bed.json",
104-
"blend_file": "output/models/leito_20251009_091500.blend",
103+
"json_file": "generated/configs/leito_20251009_091500.bed.json",
104+
"blend_file": "generated/3d/output/leito_20251009_091500.blend",
105105
"run_simulation": false
106106
}
107107
```
@@ -122,7 +122,7 @@ GET /api/job/{job_id}
122122
"progress": 100,
123123
"created_at": "2025-10-09T09:15:00",
124124
"updated_at": "2025-10-09T09:18:30",
125-
"output_files": ["output/models/leito_20251009_091500.blend"]
125+
"output_files": ["generated/3d/output/leito_20251009_091500.blend"]
126126
}
127127
```
128128

@@ -198,7 +198,7 @@ curl -X POST http://localhost:8000/api/bed/compile \
198198
curl -X POST http://localhost:8000/api/model/generate \
199199
-H "Content-Type: application/json" \
200200
-d '{
201-
"json_file": "output/leito_20251009_091500.bed.json"
201+
"json_file": "generated/configs/leito_20251009_091500.bed.json"
202202
}'
203203

204204
# verificar job

docker/docker-compose.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ services:
5656
# backend fastapi
5757
backend:
5858
build:
59-
context: .
60-
dockerfile: Dockerfile
59+
context: ..
60+
dockerfile: docker/Dockerfile
6161
container_name: cfd_backend
6262
ports:
6363
- "8000:8000"
@@ -70,9 +70,9 @@ services:
7070
CELERY_BROKER_URL: redis://redis:6379
7171
CELERY_RESULT_BACKEND: redis://redis:6379
7272
volumes:
73-
- ./backend:/app
74-
- ./scripts:/app/scripts
75-
- ./output:/app/output
73+
- ../backend:/app
74+
- ../scripts:/app/scripts
75+
- ../generated:/app/generated
7676
depends_on:
7777
postgres:
7878
condition: service_healthy
@@ -85,15 +85,15 @@ services:
8585
# frontend react
8686
frontend:
8787
build:
88-
context: .
89-
dockerfile: Dockerfile.frontend
88+
context: ..
89+
dockerfile: docker/Dockerfile.frontend
9090
container_name: cfd_frontend
9191
ports:
9292
- "5173:5173"
9393
environment:
9494
VITE_API_URL: http://localhost:8000
9595
volumes:
96-
- ./frontend:/app
96+
- ../frontend:/app
9797
- /app/node_modules
9898
depends_on:
9999
- backend
@@ -102,8 +102,8 @@ services:
102102
# celery worker para tarefas assíncronas
103103
celery-worker:
104104
build:
105-
context: .
106-
dockerfile: Dockerfile
105+
context: ..
106+
dockerfile: docker/Dockerfile
107107
container_name: cfd_celery_worker
108108
environment:
109109
DATABASE_URL: postgresql://postgres:postgres123@postgres:5432/cfd_pipeline
@@ -114,9 +114,9 @@ services:
114114
CELERY_BROKER_URL: redis://redis:6379
115115
CELERY_RESULT_BACKEND: redis://redis:6379
116116
volumes:
117-
- ./backend:/app
118-
- ./scripts:/app/scripts
119-
- ./output:/app/output
117+
- ../backend:/app
118+
- ../scripts:/app/scripts
119+
- ../generated:/app/generated
120120
depends_on:
121121
postgres:
122122
condition: service_healthy
@@ -127,16 +127,16 @@ services:
127127
# celery beat para tarefas agendadas
128128
celery-beat:
129129
build:
130-
context: .
131-
dockerfile: Dockerfile
130+
context: ..
131+
dockerfile: docker/Dockerfile
132132
container_name: cfd_celery_beat
133133
environment:
134134
DATABASE_URL: postgresql://postgres:postgres123@postgres:5432/cfd_pipeline
135135
REDIS_URL: redis://redis:6379
136136
CELERY_BROKER_URL: redis://redis:6379
137137
CELERY_RESULT_BACKEND: redis://redis:6379
138138
volumes:
139-
- ./backend:/app
139+
- ../backend:/app
140140
depends_on:
141141
postgres:
142142
condition: service_healthy

0 commit comments

Comments
 (0)