Commit 95b9f7dc87e0f0b09eb8d602c92798f2d3576e51
1 parent
23c96d23
fix: prod2-63/64
Showing
2 changed files
with
10 additions
and
10 deletions
deploy/prod2.sh
1 | #!/bin/bash | 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 | TARGET_PATH="/root/web/canrud-outside-nuxt-front" | 5 | TARGET_PATH="/root/web/canrud-outside-nuxt-front" |
6 | DOCKERFILE_PATH="/root/web/canrud-outside-nuxt-front/canrud-nuxt-front" | 6 | DOCKERFILE_PATH="/root/web/canrud-outside-nuxt-front/canrud-nuxt-front" |
7 | IMAGE_NAME="canrud-outside-front" | 7 | IMAGE_NAME="canrud-outside-front" |
nuxt.config.ts
@@ -56,15 +56,15 @@ export default defineNuxtConfig({ | @@ -56,15 +56,15 @@ export default defineNuxtConfig({ | ||
56 | nitro: { | 56 | nitro: { |
57 | devProxy: { | 57 | devProxy: { |
58 | "/shop": { | 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 | // target: "http://127.0.0.1:8002/shop", | 61 | // target: "http://127.0.0.1:8002/shop", |
62 | // target: process.env.BASE_URL || 'http://39.108.227.113:8002/shop', // 目标接口域名 | 62 | // target: process.env.BASE_URL || 'http://39.108.227.113:8002/shop', // 目标接口域名 |
63 | changeOrigin: true, // 表示是否跨域 | 63 | changeOrigin: true, // 表示是否跨域 |
64 | }, | 64 | }, |
65 | "/email": { | 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 | // target: "http://127.0.0.1:8002/shop", | 68 | // target: "http://127.0.0.1:8002/shop", |
69 | // target: process.env.BASE_URL || 'http://39.108.227.113:8002/shop', // 目标接口域名 | 69 | // target: process.env.BASE_URL || 'http://39.108.227.113:8002/shop', // 目标接口域名 |
70 | changeOrigin: true, // 表示是否跨域 | 70 | changeOrigin: true, // 表示是否跨域 |
@@ -79,14 +79,14 @@ export default defineNuxtConfig({ | @@ -79,14 +79,14 @@ export default defineNuxtConfig({ | ||
79 | // 该配置用于服务端请求转发 | 79 | // 该配置用于服务端请求转发 |
80 | routeRules: { | 80 | routeRules: { |
81 | "/shop/**": { | 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 | // proxy: "http://127.0.0.1:8002/shop/**", | 84 | // proxy: "http://127.0.0.1:8002/shop/**", |
85 | // proxy: process.env.BASE_URL || 'http://39.108.227.113:8002/shop/**' | 85 | // proxy: process.env.BASE_URL || 'http://39.108.227.113:8002/shop/**' |
86 | }, | 86 | }, |
87 | "/email/**": { | 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 | // proxy: "http://127.0.0.1:8002/shop/**", | 90 | // proxy: "http://127.0.0.1:8002/shop/**", |
91 | // proxy: process.env.BASE_URL || 'http://39.108.227.113:8002/shop/**' | 91 | // proxy: process.env.BASE_URL || 'http://39.108.227.113:8002/shop/**' |
92 | }, | 92 | }, |