Commit c9efefea5d0ba483a454c1446cfea4f0fc77701d
1 parent
aefd149f
feat: 开发期刊推荐,prod2.sh-30/31
Showing
2 changed files
with
6 additions
and
6 deletions
deploy/prod2.sh
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | # 变量定义 | 2 | # 变量定义 |
3 | -LAST_TAG="1.0.29" | ||
4 | -TAG="1.0.30" | 3 | +LAST_TAG="1.0.30" |
4 | +TAG="1.0.31" | ||
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
@@ -41,8 +41,8 @@ export default defineNuxtConfig({ | @@ -41,8 +41,8 @@ export default defineNuxtConfig({ | ||
41 | nitro: { | 41 | nitro: { |
42 | devProxy: { | 42 | devProxy: { |
43 | "/shop": { | 43 | "/shop": { |
44 | - // target: "http://47.89.254.121:8002/shop", // 线上代理地址 | ||
45 | - target: "http://127.0.0.1:8002/shop", | 44 | + target: "http://47.89.254.121:8002/shop", // 线上代理地址 |
45 | + // target: "http://127.0.0.1:8002/shop", | ||
46 | // target: process.env.BASE_URL || 'http://39.108.227.113:8002/shop', // 目标接口域名 | 46 | // target: process.env.BASE_URL || 'http://39.108.227.113:8002/shop', // 目标接口域名 |
47 | changeOrigin: true, // 表示是否跨域 | 47 | changeOrigin: true, // 表示是否跨域 |
48 | }, | 48 | }, |
@@ -50,8 +50,8 @@ export default defineNuxtConfig({ | @@ -50,8 +50,8 @@ export default defineNuxtConfig({ | ||
50 | // 该配置用于服务端请求转发 | 50 | // 该配置用于服务端请求转发 |
51 | routeRules: { | 51 | routeRules: { |
52 | "/shop/**": { | 52 | "/shop/**": { |
53 | - // proxy: "http://47.89.254.121:8002/shop/**", | ||
54 | - proxy: "http://127.0.0.1:8002/shop/**", | 53 | + proxy: "http://47.89.254.121:8002/shop/**", |
54 | + // proxy: "http://127.0.0.1:8002/shop/**", | ||
55 | // proxy: process.env.BASE_URL || 'http://39.108.227.113:8002/shop/**' | 55 | // proxy: process.env.BASE_URL || 'http://39.108.227.113:8002/shop/**' |
56 | }, | 56 | }, |
57 | }, | 57 | }, |