File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11.venv /
22** /__pycache__ /
33.idea /.DS_Store
4- .env-api-prod
4+ .env-api-prod
5+ front-end
Original file line number Diff line number Diff line change 11FROM node:latest
22
3- WORKDIR client/
3+ WORKDIR /app
44
55COPY . .
6+
67RUN npm install
8+
9+ CMD npm run build
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ import {ref} from "vue";
55const error = ref <string >(" " );
66const boxOpacity = ref <number >(1 );
77
8- let opacityTimer: NodeJS . Timeout | null = null ;
9- let endTimer: NodeJS . Timeout | null = null ;
8+ let opacityTimer: ReturnType < typeof setTimeout > | null = null ;
9+ let endTimer: ReturnType < typeof setTimeout > | null = null ;
1010
1111const fading = ref <string >(" " );
1212const msgType = ref <string >(" " );
Original file line number Diff line number Diff line change 11<script setup lang="ts">
22
33import {ref } from " vue" ;
4- import {send } from " vite" ;
54
65const props = defineProps ([" visit_info" ])
76const emit = defineEmits ([" close" ])
Original file line number Diff line number Diff line change @@ -2,9 +2,12 @@ services:
22 nginx :
33 build :
44 context : ./nginx/
5+ volumes :
6+ - ./front-end:/var/www/app
57 ports :
68 - " 443:443"
79 - " 8010:80"
10+
811 api :
912 build :
1013 context : ./api/
@@ -21,9 +24,8 @@ services:
2124 client :
2225 build :
2326 context : ./client/
24- ports :
25- - " 3000:3000"
26- command : npm run dev
27+ volumes :
28+ - ./front-end:/app/dist
2729
2830volumes :
2931 sqlite-db:
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ server {
1414 }
1515
1616 location / {
17- proxy_pass http://client:3000 ;
18- proxy_http_version 1.1 ;
17+ root /var/www/app ;
18+ try_files $uri $uri/ /index.html ;
1919 }
2020
2121}
You can’t perform that action at this time.
0 commit comments