Skip to content

Commit

Permalink
feat(frontend): build 成果物配置先の変更: ./dist > ../public
Browse files Browse the repository at this point in the history
  • Loading branch information
ShotaKitazawa committed Jul 8, 2021
1 parent daaa625 commit 1fb65f3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion development/backend-go/ci.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ COPY webapp/go/go.mod webapp/go/go.sum ./
RUN go mod download

COPY webapp/go/ .
COPY --from=frontend /app /webapp/frontend
COPY --from=frontend /public /webapp/public
RUN go build -o app .

ENTRYPOINT ["dockerize", "-wait=tcp://mysql-backend:3306", "-timeout=60s", "./app"]
2 changes: 1 addition & 1 deletion development/backend-go/dev.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ COPY webapp/go/go.sum .

RUN go mod download

COPY --from=frontend /app /webapp/frontend
COPY --from=frontend /public /webapp/public
1 change: 1 addition & 0 deletions webapp/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/public
2 changes: 1 addition & 1 deletion webapp/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"version": "0.0.0",
"scripts": {
"dev": "vite --port 3333",
"build": "tsc && vite build",
"build": "tsc && vite build --outDir ../public",
"serve": "vite preview",
"lint": "eslint . --ext .js,.ts,.jsx,.tsx",
"fmt": "prettier . --write",
Expand Down
2 changes: 1 addition & 1 deletion webapp/go/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const (
searchLimit = 20
conditionLimit = 20
isuListLimit = 200 // TODO 修正が必要なら変更
frontendContentsPath = "../frontend/dist"
frontendContentsPath = "../public"
jwtVerificationKeyPath = "../ec256-public.pem"
defaultIconFilePath = "../NoImage.png"
defaultJIAServiceURL = "http://localhost:5000"
Expand Down

0 comments on commit 1fb65f3

Please sign in to comment.