Commit bc93313b094b25394e7b33b51fa6ec7e3f80f087

Authored by boyang
1 parent cebe6b62

修改prod2-16/17

deploy/prod2.sh
1 #!/bin/bash 1 #!/bin/bash
2 # 变量定义 2 # 变量定义
3 -LAST_TAG="1.0.15"  
4 -TAG="1.0.16" 3 +LAST_TAG="1.0.16"
  4 +TAG="1.0.17"
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
@@ -33,7 +33,7 @@ export default defineNuxtConfig({ @@ -33,7 +33,7 @@ export default defineNuxtConfig({
33 devProxy: { 33 devProxy: {
34 "/shop": { 34 "/shop": {
35 target: "http://47.89.254.121:8002/shop", // 线上代理地址 35 target: "http://47.89.254.121:8002/shop", // 线上代理地址
36 - //target: "http://127.0.0.1:8002/shop", 36 + // target: "http://127.0.0.1:8002/shop",
37 // target: process.env.BASE_URL || 'http://39.108.227.113:8002/shop', // 目标接口域名 37 // target: process.env.BASE_URL || 'http://39.108.227.113:8002/shop', // 目标接口域名
38 changeOrigin: true, // 表示是否跨域 38 changeOrigin: true, // 表示是否跨域
39 }, 39 },
@@ -42,7 +42,7 @@ export default defineNuxtConfig({ @@ -42,7 +42,7 @@ export default defineNuxtConfig({
42 routeRules: { 42 routeRules: {
43 "/shop/**": { 43 "/shop/**": {
44 proxy: "http://47.89.254.121:8002/shop/**", 44 proxy: "http://47.89.254.121:8002/shop/**",
45 - //proxy: "http://127.0.0.1:8002/shop/**", 45 + // proxy: "http://127.0.0.1:8002/shop/**",
46 // proxy: process.env.BASE_URL || 'http://39.108.227.113:8002/shop/**' 46 // proxy: process.env.BASE_URL || 'http://39.108.227.113:8002/shop/**'
47 }, 47 },
48 }, 48 },