From 7a2b8b3109b44cdca2b538925c75aa955e0e02b2 Mon Sep 17 00:00:00 2001 From: mahmood Date: Fri, 18 Sep 2026 17:16:36 +0330 Subject: [PATCH] fix add new version of user in app --- .idea/.gitignore | 10 ++++++++++ .idea/gold-bank.iml | 8 ++++++++ .idea/modules.xml | 8 ++++++++ .idea/php.xml | 19 +++++++++++++++++++ .idea/vcs.xml | 6 ++++++ DOCKER.md | 4 +++- apps/.idea/.gitignore | 10 ++++++++++ apps/.idea/apps.iml | 8 ++++++++ apps/.idea/modules.xml | 8 ++++++++ apps/.idea/php.xml | 19 +++++++++++++++++++ apps/.idea/vcs.xml | 6 ++++++ docker-compose.yml | 12 ++++++++++++ package.json | 2 +- 13 files changed, 118 insertions(+), 2 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/gold-bank.iml create mode 100644 .idea/modules.xml create mode 100644 .idea/php.xml create mode 100644 .idea/vcs.xml create mode 100644 apps/.idea/.gitignore create mode 100644 apps/.idea/apps.iml create mode 100644 apps/.idea/modules.xml create mode 100644 apps/.idea/php.xml create mode 100644 apps/.idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..ab1f416 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,10 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Ignored default folder with query files +/queries/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/.idea/gold-bank.iml b/.idea/gold-bank.iml new file mode 100644 index 0000000..c956989 --- /dev/null +++ b/.idea/gold-bank.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..662b137 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/php.xml b/.idea/php.xml new file mode 100644 index 0000000..f324872 --- /dev/null +++ b/.idea/php.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/DOCKER.md b/DOCKER.md index 875335f..6b3e6de 100644 --- a/DOCKER.md +++ b/DOCKER.md @@ -8,7 +8,7 @@ Dokploy only builds thin images that copy those files (no `pnpm install` on the ```bash pnpm install pnpm build:release -git add apps/api/release apps/admin-panel/dist apps/user-app/dist +git add -f apps/api/release apps/admin-panel/dist apps/user-app/dist apps/user-app-v2/dist git commit -m "chore: refresh release artifacts" git push ``` @@ -20,6 +20,7 @@ What this produces: | API | `apps/api/release/app.js` (+ Prisma under `release/vendor`) | `docker.arvancloud.ir/node:20-bookworm` | | Admin | `apps/admin-panel/dist/` | `docker.arvancloud.ir/nginx:latest` | | User | `apps/user-app/dist/` | `docker.arvancloud.ir/nginx:latest` | +| User v2 | `apps/user-app-v2/dist/` | `docker.arvancloud.ir/nginx:latest` | ## Dokploy Environment @@ -38,6 +39,7 @@ PORT=3000 |---|---|---| | `admin-panel` | admin.example.com | **80** | | `user-app` | app.example.com | **80** | +| `user-app-v2` | app-v2.example.com | **80** | | `api` | (optional) | **3000** | Frontends call `/api` on their own domain; nginx proxies to `api:3000`. diff --git a/apps/.idea/.gitignore b/apps/.idea/.gitignore new file mode 100644 index 0000000..ab1f416 --- /dev/null +++ b/apps/.idea/.gitignore @@ -0,0 +1,10 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Ignored default folder with query files +/queries/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/apps/.idea/apps.iml b/apps/.idea/apps.iml new file mode 100644 index 0000000..c956989 --- /dev/null +++ b/apps/.idea/apps.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/apps/.idea/modules.xml b/apps/.idea/modules.xml new file mode 100644 index 0000000..44330cb --- /dev/null +++ b/apps/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/apps/.idea/php.xml b/apps/.idea/php.xml new file mode 100644 index 0000000..f324872 --- /dev/null +++ b/apps/.idea/php.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/apps/.idea/vcs.xml b/apps/.idea/vcs.xml new file mode 100644 index 0000000..6c0b863 --- /dev/null +++ b/apps/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 3b4a5c4..db26178 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -72,6 +72,18 @@ services: depends_on: - api + # Same copy-only nginx pattern as user-app; map a separate Dokploy domain to this service. + user-app-v2: + build: + context: ./apps/user-app-v2 + dockerfile: Dockerfile + container_name: goldbank_user_app_v2 + expose: + - "80" + restart: unless-stopped + depends_on: + - api + volumes: postgres_data: api_uploads: diff --git a/package.json b/package.json index 78b363e..81cf6ca 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "scripts": { "dev": "turbo run dev", "build": "turbo run build", - "build:release": "pnpm --filter @gold-bank/shared-types build && pnpm --filter api build:release && pnpm --filter admin-panel build && pnpm --filter user-app build", + "build:release": "pnpm --filter @gold-bank/shared-types build && pnpm --filter api build:release && pnpm --filter admin-panel build && pnpm --filter user-app build && pnpm --filter user-app-v2 build", "lint": "turbo run lint", "test": "turbo run test", "db:generate": "pnpm --filter api prisma generate",