Skip to content

Commit 63bfdaf

Browse files
authored
feat(toolkit): Update make dev frontend build path (#712)
* update assistants_web port * update make dev frontend
1 parent dbc5b7b commit 63bfdaf

File tree

8 files changed

+33
-33
lines changed

8 files changed

+33
-33
lines changed

Dockerfile

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,16 @@ COPY src/backend src/backend
4545
COPY docker_scripts/ ${PG_APP_HOME}/
4646

4747
# Install frontend dependencies
48-
WORKDIR /workspace/src/interfaces/coral_web
49-
COPY src/interfaces/coral_web/src ./src
50-
COPY src/interfaces/coral_web/public ./public
51-
COPY src/interfaces/coral_web/next.config.mjs .
52-
COPY src/interfaces/coral_web/tsconfig.json .
53-
COPY src/interfaces/coral_web/tailwind.config.js .
54-
COPY src/interfaces/coral_web/postcss.config.js .
55-
COPY src/interfaces/coral_web/package.json src/interfaces/coral_web/yarn.lock* src/interfaces/coral_web/package-lock.json* src/interfaces/coral_web/pnpm-lock.yaml* ./
56-
COPY src/interfaces/coral_web/.env.development .
57-
COPY src/interfaces/coral_web/.env.production .
48+
WORKDIR /workspace/src/interfaces/assistants_web
49+
COPY src/interfaces/assistants_web/src ./src
50+
COPY src/interfaces/assistants_web/public ./public
51+
COPY src/interfaces/assistants_web/next.config.mjs .
52+
COPY src/interfaces/assistants_web/tsconfig.json .
53+
COPY src/interfaces/assistants_web/tailwind.config.js .
54+
COPY src/interfaces/assistants_web/postcss.config.js .
55+
COPY src/interfaces/assistants_web/package.json src/interfaces/assistants_web/yarn.lock* src/interfaces/assistants_web/package-lock.json* src/interfaces/assistants_web/pnpm-lock.yaml* ./
56+
COPY src/interfaces/assistants_web/.env.development .
57+
COPY src/interfaces/assistants_web/.env.production .
5858

5959
ENV NEXT_PUBLIC_API_HOSTNAME='/api'
6060
RUN npm install \

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,19 +100,19 @@ win-first-run:
100100

101101
.PHONY: format-web
102102
format-web:
103-
cd src/interfaces/coral_web && npm run format:write
103+
cd src/interfaces/assistants_web && npm run format:write
104104

105105
.PHONY: generate-client-web
106106
generate-client-web:
107-
cd src/interfaces/coral_web && npm run generate:client && npm run format:write
107+
cd src/interfaces/assistants_web && npm run generate:client && npm run format:write
108108

109109
.PHONY: install-web
110110
install-web:
111-
cd src/interfaces/coral_web && npm install
111+
cd src/interfaces/assistants_web && npm install
112112

113113
.PHONY: build-web
114114
build-web:
115-
cd src/interfaces/coral_web && npm run build
115+
cd src/interfaces/assistants_web && npm run build
116116

117117
.PHONY: test-db
118118
test-db:

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ services:
141141
frontend:
142142
build:
143143
target: ${BUILD_TARGET:-prod}
144-
context: ./src/interfaces/coral_web
144+
context: ./src/interfaces/assistants_web
145145
dockerfile: Dockerfile
146146
# Set environment variables directly in the docker-compose file
147147
environment:
@@ -158,7 +158,7 @@ services:
158158
develop:
159159
watch:
160160
- action: sync
161-
path: ./src/interfaces/coral_web
161+
path: ./src/interfaces/assistants_web
162162
target: /app
163163
ignore:
164164
- node_modules/

docker_scripts/functions

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,14 +270,14 @@ run_backend_poetry() {
270270
}
271271

272272
run_frontend_proxy() {
273-
cd /workspace/src/interfaces/coral_web
273+
cd /workspace/src/interfaces/assistants_web
274274
echo "Starting Frontend..."
275275
pm2 start npm -- run -- start:single-docker-proxy
276276
echo "Frontend started..."
277277
}
278278

279279
run_frontend() {
280-
cd /workspace/src/interfaces/coral_web
280+
cd /workspace/src/interfaces/assistants_web
281281
echo "Building Frontend"
282282
npm run next:build
283283
echo "Starting Frontend..."

src/interfaces/assistants_web/.env.development

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ API_HOSTNAME=http://backend:8000
33

44
# Client
55
NEXT_PUBLIC_API_HOSTNAME=http://localhost:8000
6-
NEXT_PUBLIC_FRONTEND_HOSTNAME=http://localhost:4444
6+
NEXT_PUBLIC_FRONTEND_HOSTNAME=http://localhost:4000
77
NEXT_PUBLIC_HAS_CUSTOM_LOGO=false
88
NEXT_PUBLIC_GOOGLE_DRIVE_CLIENT_ID='client-id'
99
NEXT_PUBLIC_GOOGLE_DRIVE_DEVELOPER_KEY='developer-key'

src/interfaces/assistants_web/.env.production

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ API_HOSTNAME=http://backend:8000
33

44
# Client
55
NEXT_PUBLIC_API_HOSTNAME=http://localhost:8000
6-
NEXT_PUBLIC_FRONTEND_HOSTNAME=http://localhost:4444
6+
NEXT_PUBLIC_FRONTEND_HOSTNAME=http://localhost:4000
77
NEXT_PUBLIC_HAS_CUSTOM_LOGO=false
88
NEXT_PUBLIC_GOOGLE_DRIVE_CLIENT_ID='client-id'
99
NEXT_PUBLIC_GOOGLE_DRIVE_DEVELOPER_KEY='developer-key'

src/interfaces/assistants_web/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
"yarn": "9999"
1010
},
1111
"scripts": {
12-
"dev": "next dev --port 4444",
12+
"dev": "next dev --port 4000",
1313
"build": "next build",
1414
"lint": "next lint",
1515
"ts-lint": "tsc -noEmit -incremental -watch",
1616
"format": "prettier --check \"**/*.{js,json,ts,tsx,md}\"",
1717
"format:write": "prettier --write \"**/*.{js,json,ts,tsx,md}\"",
1818
"test": "vitest",
1919
"next:build": "next build",
20-
"start": "next start --port 4444",
21-
"start:single-docker": "next start --port 4444",
20+
"start": "next start --port 4000",
21+
"start:single-docker": "next start --port 4000",
2222
"start:single-docker-proxy": "next start --port 8090",
2323
"generate:client": "openapi-ts",
2424
"storybook": "storybook dev -p 6006",

standalone.Dockerfile

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -85,16 +85,16 @@ RUN chmod 755 /sbin/entrypoint.sh \
8585

8686

8787
# Install frontend dependencies
88-
WORKDIR /workspace/src/interfaces/coral_web
89-
COPY src/interfaces/coral_web/src ./src
90-
COPY src/interfaces/coral_web/public ./public
91-
COPY src/interfaces/coral_web/next.config.mjs .
92-
COPY src/interfaces/coral_web/tsconfig.json .
93-
COPY src/interfaces/coral_web/tailwind.config.js .
94-
COPY src/interfaces/coral_web/postcss.config.js .
95-
COPY src/interfaces/coral_web/package.json src/interfaces/coral_web/yarn.lock* src/interfaces/coral_web/package-lock.json* src/interfaces/coral_web/pnpm-lock.yaml* ./
96-
COPY src/interfaces/coral_web/.env.development .
97-
COPY src/interfaces/coral_web/.env.production .
88+
WORKDIR /workspace/src/interfaces/assistants_web
89+
COPY src/interfaces/assistants_web/src ./src
90+
COPY src/interfaces/assistants_web/public ./public
91+
COPY src/interfaces/assistants_web/next.config.mjs .
92+
COPY src/interfaces/assistants_web/tsconfig.json .
93+
COPY src/interfaces/assistants_web/tailwind.config.js .
94+
COPY src/interfaces/assistants_web/postcss.config.js .
95+
COPY src/interfaces/assistants_web/package.json src/interfaces/assistants_web/yarn.lock* src/interfaces/assistants_web/package-lock.json* src/interfaces/assistants_web/pnpm-lock.yaml* ./
96+
COPY src/interfaces/assistants_web/.env.development .
97+
COPY src/interfaces/assistants_web/.env.production .
9898

9999
RUN npm install
100100

0 commit comments

Comments
 (0)