Commit 23c96d233fc7870459bdbcf8d9cb5de2ab21d694
1 parent
52595722
fix: prod2-62/63
Showing
2 changed files
with
10 additions
and
6 deletions
deploy/prod2.sh
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | # 变量定义 | 2 | # 变量定义 |
3 | -LAST_TAG="1.0.61" | ||
4 | -TAG="1.0.62" | 3 | +LAST_TAG="1.0.62" |
4 | +TAG="1.0.63" | ||
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,13 +56,15 @@ export default defineNuxtConfig({ | @@ -56,13 +56,15 @@ export default defineNuxtConfig({ | ||
56 | nitro: { | 56 | nitro: { |
57 | devProxy: { | 57 | devProxy: { |
58 | "/shop": { | 58 | "/shop": { |
59 | - 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", // 线上代理地址 | ||
60 | // target: "http://127.0.0.1:8002/shop", | 61 | // target: "http://127.0.0.1:8002/shop", |
61 | // 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', // 目标接口域名 |
62 | changeOrigin: true, // 表示是否跨域 | 63 | changeOrigin: true, // 表示是否跨域 |
63 | }, | 64 | }, |
64 | "/email": { | 65 | "/email": { |
65 | - 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", // 线上代理地址 | ||
66 | // target: "http://127.0.0.1:8002/shop", | 68 | // target: "http://127.0.0.1:8002/shop", |
67 | // 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', // 目标接口域名 |
68 | changeOrigin: true, // 表示是否跨域 | 70 | changeOrigin: true, // 表示是否跨域 |
@@ -77,12 +79,14 @@ export default defineNuxtConfig({ | @@ -77,12 +79,14 @@ export default defineNuxtConfig({ | ||
77 | // 该配置用于服务端请求转发 | 79 | // 该配置用于服务端请求转发 |
78 | routeRules: { | 80 | routeRules: { |
79 | "/shop/**": { | 81 | "/shop/**": { |
80 | - 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/**", | ||
81 | // proxy: "http://127.0.0.1:8002/shop/**", | 84 | // proxy: "http://127.0.0.1:8002/shop/**", |
82 | // 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/**' |
83 | }, | 86 | }, |
84 | "/email/**": { | 87 | "/email/**": { |
85 | - 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/**", | ||
86 | // proxy: "http://127.0.0.1:8002/shop/**", | 90 | // proxy: "http://127.0.0.1:8002/shop/**", |
87 | // 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/**' |
88 | }, | 92 | }, |