Skip to content

Commit 165a35f

Browse files
updated frontend folder structure (src/app/frontend)
1 parent ab8b290 commit 165a35f

34 files changed

Lines changed: 17 additions & 16 deletions

.github/workflows/docker-build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ on:
88
- demo
99
paths:
1010
- 'content-gen/src/backend/**'
11-
- 'content-gen/src/frontend/**'
12-
- 'content-gen/src/frontend-server/**'
11+
- 'content-gen/src/app/frontend/**'
12+
- 'content-gen/src/app/frontend-server/**'
1313
- '.github/workflows/docker-build.yml'
1414
pull_request:
1515
types:
@@ -23,8 +23,8 @@ on:
2323
- demo
2424
paths:
2525
- 'content-gen/src/backend/**'
26-
- 'content-gen/src/frontend/**'
27-
- 'content-gen/src/frontend-server/**'
26+
- 'content-gen/src/app/frontend/**'
27+
- 'content-gen/src/app/frontend-server/**'
2828
- '.github/workflows/docker-build.yml'
2929
workflow_dispatch:
3030

@@ -76,8 +76,8 @@ jobs:
7676
- name: Build and Push Docker Image for Frontend Server
7777
uses: docker/build-push-action@v6
7878
with:
79-
context: ./content-gen/src
80-
file: ./content-gen/src/WebApp.Dockerfile
79+
context: ./content-gen/src/app
80+
file: ./content-gen/src/app/WebApp.Dockerfile
8181
push: ${{ github.ref_name == 'main' || github.ref_name == 'dev' || github.ref_name == 'demo' || github.ref_name == 'dependabotchanges' }}
8282
tags: |
8383
${{ secrets.ACR_LOGIN_SERVER || 'acrlogin.azurecr.io' }}/content-gen-app:${{ steps.determine_tag.outputs.tagname }}

.gitignore

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,15 @@ eggs/
3636
*.swo
3737

3838
# Node
39-
/content-gen/src/frontend/node_modules/
40-
/content-gen/src/frontend-server/node_modules/
41-
/content-gen/src/frontend-server/static/
42-
/content-gen/src/frontend-server/*.zip
39+
/content-gen/src/app/frontend/node_modules/
40+
/content-gen/src/app/frontend-server/node_modules/
41+
/content-gen/src/app/frontend-server/static/
42+
/content-gen/src/app/frontend-server/*.zip
4343
node_modules/
4444

4545
# Build output
46-
/content-gen/src/static/
46+
/content-gen/src/app/static/
47+
/content-gen/src/app/frontend/dist/
4748

4849
# Logs
4950
*.log

content-gen/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ pip install -r requirements.txt
142142
python app.py
143143

144144
# Frontend
145-
cd src/frontend
145+
cd src/app/frontend
146146
npm install
147147
npm run dev
148148
```

content-gen/docs/AZD_DEPLOYMENT.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ az container restart --name $ACI_NAME --resource-group $RG_NAME
237237
### Update Only the Frontend
238238

239239
```bash
240-
cd src/frontend
240+
cd src/app/frontend
241241
npm install && npm run build
242242

243243
cd ../frontend-server
@@ -336,7 +336,7 @@ Error: az webapp deploy failed
336336

337337
**Solution**: Ensure the frontend builds successfully:
338338
```bash
339-
cd src/frontend
339+
cd src/app/frontend
340340
npm install
341341
npm run build
342342
```

content-gen/docs/DEPLOYMENT.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ az webapp config set \
287287
--http20-enabled false
288288

289289
# Build and deploy frontend
290-
cd content-gen/src/frontend
290+
cd content-gen/src/app/frontend
291291
npm install
292292
npm run build
293293

@@ -396,7 +396,7 @@ az container restart -g $RESOURCE_GROUP -n aci-contentgen-backend
396396
### Update Frontend
397397

398398
```bash
399-
cd content-gen/src/frontend
399+
cd content-gen/src/app/frontend
400400
npm run build
401401
cd ../frontend-server
402402
zip -r frontend-deploy.zip static/ server.js package.json package-lock.json
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)