Skip to content

Commit

Permalink
Fix app startup on platform
Browse files Browse the repository at this point in the history
  • Loading branch information
fredsnap committed Sep 25, 2023
1 parent 055b8ee commit 8c625b3
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VUE_APP_HOST=http://127.0.0.1:9090/
VUE_APP_HOST=https://reports-api.snap-ci.ovh/
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ FROM node:17-alpine AS build
RUN mkdir -p /app
WORKDIR /app
COPY . .
RUN npm install
RUN npm run build --mode=production
RUN npm install && npm run build --mode=production

FROM nginx:1.18-alpine
COPY --from=build /app/dist /usr/share/nginx/html
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ npm run lint
### Deploy to k8s

```sh
kubectl apply -f manifests/deployment.yaml
kubectl apply -f manifests/service.yaml
kubectl apply -f manifests/deployment.yaml -n snap-report
kubectl apply -f manifests/service.yaml -n snap-report
kubectl apply -f manifests/ingress.yaml -n snap-report
```

### Customize configuration
Expand Down
2 changes: 1 addition & 1 deletion manifests/app-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ spec:
requests:
cpu: "100m"
ports:
- containerPort: 8080
- containerPort: 80
2 changes: 1 addition & 1 deletion manifests/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ spec:
# Port Map
- name: http
port: 80
targetPort: 8080
targetPort: 80
protocol: TCP
type: ClusterIP
4 changes: 0 additions & 4 deletions vue.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
module.exports = {
"transpileDependencies": [],
"publicPath": process.env.NODE_ENV === 'production'
? '/reports/'
: '/'

}

0 comments on commit 8c625b3

Please sign in to comment.