refactor: aplatir backend/cloud et frontend/cloud
Le niveau `cloud` etait redondant : il ne reste qu'une seule application. - backend/cloud/* -> backend/*, frontend/cloud/* -> frontend/* - workspaces npm : frontend et backend ; reference tsconfig ./backend - extends tsconfig.base corrige (../ au lieu de ../../) - docker-compose : APP_DIR backend/frontend, montage ./backend/migrations - deploy.yml : reconstruit aussi l'image migrate - chemins mis a jour dans les docs, le Makefile et docker/README.md
This commit is contained in:
+4
-4
@@ -28,7 +28,7 @@ x-migrate-build: &migrate-build
|
||||
# DNS mort (routeur), ce qui casse `npm ci` dans le conteneur.
|
||||
network: host
|
||||
args:
|
||||
APP_DIR: backend/cloud
|
||||
APP_DIR: backend
|
||||
|
||||
services:
|
||||
app-build:
|
||||
@@ -39,7 +39,7 @@ services:
|
||||
target: export
|
||||
network: host
|
||||
args:
|
||||
APP_DIR: frontend/cloud
|
||||
APP_DIR: frontend
|
||||
volumes:
|
||||
- app_data:/output
|
||||
- ./docker/publish.sh:/publish.sh:ro
|
||||
@@ -110,7 +110,7 @@ services:
|
||||
DB_NAME: ${CLOUD_DATABASE}
|
||||
command: ["node", "dist/cli.js", "--dir", "/migrations"]
|
||||
volumes:
|
||||
- ./backend/cloud/migrations:/migrations:ro
|
||||
- ./backend/migrations:/migrations:ro
|
||||
|
||||
api:
|
||||
container_name: cohaise-cloud-api
|
||||
@@ -119,7 +119,7 @@ services:
|
||||
dockerfile: docker/Dockerfile.api
|
||||
network: host
|
||||
args:
|
||||
APP_DIR: backend/cloud
|
||||
APP_DIR: backend
|
||||
image: cohaise-cloud-api
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
|
||||
Reference in New Issue
Block a user