Skip to content

Commit d5c480d

Browse files
committed
fix: update backend port mappings in e2e workflow and documentation
1 parent ed66f9e commit d5c480d

3 files changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/e2e.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ jobs:
1717
# token: ${{ secrets.CI_PAT }}
1818
path: backend
1919
- run: cd backend && cp env-example-document .env
20-
- run: cd backend && sed -i 's/APP_PORT=3000/APP_PORT=3001/g' .env
21-
- run: cd backend && sed -i 's/BACKEND_DOMAIN=http:\/\/localhost:3000/BACKEND_DOMAIN=http:\/\/localhost:3001/g' .env
2220
- name: Run backend
2321
# print output of the command to file and store it as artifact
2422
run: cd backend && docker compose -f docker-compose.document.yaml up > ${{ runner.temp }}/backend.log 2>&1 &

playwright-tests/generators/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ npm run test:e2e:generators:crud
7878

7979
### How it works
8080

81-
1. **Backend boot** (`run-crud.sh`): generates a matching `Tag` entity on the NestJS side, lints + builds, then `docker compose up -d --build` against `docker-compose.generators-relational.test.yaml` which now maps host:3001 → container:3000.
81+
1. **Backend boot** (`run-crud.sh`): generates a matching `Tag` entity on the NestJS side, lints + builds, then `docker compose up -d --build` against `docker-compose.generators-relational.test.yaml` which now maps host:3001 → container:3001.
8282
2. **Frontend generate**: runs `generate:resource` + `generate:field` for `Tag` in this repo.
8383
3. **Playwright** (`playwright.config.generators-crud.ts`): boots Next.js via its `webServer` block at `http://localhost:3000`, then drives `generators-crud.spec.ts` (admin login + Tag CRUD).
8484
4. **Cleanup**: `docker compose down -v`, `git checkout -- src` + targeted `rm`s in both repos, generated TypeORM migration files removed.

playwright-tests/generators/run-crud.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ npm run add:property:to-relational -- --name Tag --property name --kind primitiv
9090
npm run lint
9191
npm run build
9292

93-
echo "▶ Booting NestJS Docker stack (host port $HOST_API_PORT → container 3000)…"
93+
echo "▶ Booting NestJS Docker stack (host port $HOST_API_PORT → container 3001)…"
9494
docker compose -f "$COMPOSE_FILE" --env-file env-example-relational -p "$COMPOSE_PROJECT" up -d --build
9595

9696
echo "▶ Waiting for backend to accept HTTP on http://127.0.0.1:$HOST_API_PORT/ …"

0 commit comments

Comments
 (0)