Browse Source

feat: 切换请求环境以及部署目录

sunxiao 4 months ago
parent
commit
a1e0a26b87
8 changed files with 9 additions and 97312 deletions
  1. 1 1
      .env.development
  2. 2 2
      .env.production
  3. 1 1
      .env.test
  4. 4 4
      deploy/config.js
  5. 1 0
      deploy/index.js
  6. BIN
      public/factory.glb
  7. 0 97282
      public/factory.obj
  8. 0 22
      public/texture.mtl

+ 1 - 1
.env.development

@@ -1,5 +1,5 @@
 # 请求地址
-VITE_BASE_URL=http://10.0.0.28:8080
+VITE_BASE_URL=http://192.168.40.21:8080
 # VITE_BASE_URL=http://192.168.9.54:8080
 # 请求前缀
 VITE_BASE_PREFIX='' 

+ 2 - 2
.env.production

@@ -1,4 +1,4 @@
 # 请求地址
-VITE_BASE_URL=http://192.168.9.54:8080
+VITE_BASE_URL=http://192.168.40.18:8080
 # 请求前缀
-VITE_BASE_PREFIX='' 
+VITE_BASE_PREFIX='' 

+ 1 - 1
.env.test

@@ -1,4 +1,4 @@
 # 请求地址
-VITE_BASE_URL=http://10.0.0.28:8080
+VITE_BASE_URL=http://192.168.40.21:8080
 # 请求前缀
 VITE_BASE_PREFIX='' 

+ 4 - 4
deploy/config.js

@@ -4,7 +4,7 @@ export const config = [
     nodeEnv: "test",
     name: "测试环境",
     domain: "",
-    host: "10.0.0.28",
+    host: "192.168.40.21",
     port: "22",
     username: "root",
     password: "hsmysql",
@@ -16,11 +16,11 @@ export const config = [
     nodeEnv: "prod",
     name: "生产环境",
     domain: "",
-    host: "192.168.9.54",
+    host: "192.168.40.18",
     port: "22",
     username: "root",
     password: "admin1,xxh",
-    path: "/usr/share/nginx/html",
-    removepath: "/usr/share/nginx/html"
+    path: "/data/node_web/big_model_web",
+    removepath: "/data/node_web/big_model_web"
   },
 ];

+ 1 - 0
deploy/index.js

@@ -44,6 +44,7 @@ const connectShell = async () => {
     password: item.password,
   })
   .then(() => {
+    console.log("item.path", item.path);
     printMsg({color: 'green', text: '服务器连接成功'});
     printMsg({color: 'yellow', text: '执行删除文件中'});
     return sftp.rmdir(item.path, true);

BIN
public/factory.glb


File diff suppressed because it is too large
+ 0 - 97282
public/factory.obj


+ 0 - 22
public/texture.mtl

@@ -1,22 +0,0 @@
-# Blender 4.1.1 MTL File: '水厂6.blend'
-# www.blender.org
-
-newmtl 材质.001
-Ns 250.000000
-Ka 1.000000 1.000000 1.000000
-Kd 0.156420 0.800416 0.155804
-Ks 0.500000 0.500000 0.500000
-Ke 0.000000 0.000000 0.000000
-Ni 1.500000
-d 1.000000
-illum 2
-
-newmtl 材质.002
-Ns 360.000000
-Ka 1.000000 1.000000 1.000000
-Kd 0.800000 0.800000 0.800000
-Ks 0.500000 0.500000 0.500000
-Ke 0.000000 0.000000 0.000000
-Ni 1.000000
-d 1.000000
-illum 2

Some files were not shown because too many files changed in this diff