Commit 95b9f7dc87e0f0b09eb8d602c92798f2d3576e51

Authored by boyang
1 parent 23c96d23

fix: prod2-63/64

deploy/prod2.sh
1 1 #!/bin/bash
2 2 # 变量定义
3   -LAST_TAG="1.0.62"
4   -TAG="1.0.63"
  3 +LAST_TAG="1.0.63"
  4 +TAG="1.0.64"
5 5 TARGET_PATH="/root/web/canrud-outside-nuxt-front"
6 6 DOCKERFILE_PATH="/root/web/canrud-outside-nuxt-front/canrud-nuxt-front"
7 7 IMAGE_NAME="canrud-outside-front"
... ...
nuxt.config.ts
... ... @@ -56,15 +56,15 @@ export default defineNuxtConfig({
56 56 nitro: {
57 57 devProxy: {
58 58 "/shop": {
59   - target: 'http://192.168.31.242:20740/',
60   - // target: "http://47.89.254.121:8002/shop", // 线上代理地址
  59 + // target: 'http://192.168.31.242:20740/',
  60 + target: "http://47.89.254.121:8002/shop", // 线上代理地址
61 61 // target: "http://127.0.0.1:8002/shop",
62 62 // target: process.env.BASE_URL || 'http://39.108.227.113:8002/shop', // 目标接口域名
63 63 changeOrigin: true, // 表示是否跨域
64 64 },
65 65 "/email": {
66   - target: 'http://192.168.31.242:20740/',
67   - // target: "http://47.89.254.121:8002/email", // 线上代理地址
  66 + // target: 'http://192.168.31.242:20740/',
  67 + target: "http://47.89.254.121:8002/email", // 线上代理地址
68 68 // target: "http://127.0.0.1:8002/shop",
69 69 // target: process.env.BASE_URL || 'http://39.108.227.113:8002/shop', // 目标接口域名
70 70 changeOrigin: true, // 表示是否跨域
... ... @@ -79,14 +79,14 @@ export default defineNuxtConfig({
79 79 // 该配置用于服务端请求转发
80 80 routeRules: {
81 81 "/shop/**": {
82   - proxy: 'http://192.168.31.242:20740/',
83   - // proxy: "http://47.89.254.121:8002/shop/**",
  82 + // proxy: 'http://192.168.31.242:20740/',
  83 + proxy: "http://47.89.254.121:8002/shop/**",
84 84 // proxy: "http://127.0.0.1:8002/shop/**",
85 85 // proxy: process.env.BASE_URL || 'http://39.108.227.113:8002/shop/**'
86 86 },
87 87 "/email/**": {
88   - proxy: 'http://192.168.31.242:20740/',
89   - // proxy: "http://47.89.254.121:8002/email/**",
  88 + // proxy: 'http://192.168.31.242:20740/',
  89 + proxy: "http://47.89.254.121:8002/email/**",
90 90 // proxy: "http://127.0.0.1:8002/shop/**",
91 91 // proxy: process.env.BASE_URL || 'http://39.108.227.113:8002/shop/**'
92 92 },
... ...