Commit c9efefea5d0ba483a454c1446cfea4f0fc77701d

Authored by boyang
1 parent aefd149f

feat: 开发期刊推荐,prod2.sh-30/31

deploy/prod2.sh
1 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 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
... ... @@ -41,8 +41,8 @@ export default defineNuxtConfig({
41 41 nitro: {
42 42 devProxy: {
43 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 46 // target: process.env.BASE_URL || 'http://39.108.227.113:8002/shop', // 目标接口域名
47 47 changeOrigin: true, // 表示是否跨域
48 48 },
... ... @@ -50,8 +50,8 @@ export default defineNuxtConfig({
50 50 // 该配置用于服务端请求转发
51 51 routeRules: {
52 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 55 // proxy: process.env.BASE_URL || 'http://39.108.227.113:8002/shop/**'
56 56 },
57 57 },
... ...