融易诚
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
DESKTOP-PJ5G56S\Administrator 423527559b [feature] form ;layout => vertical 3 hours ago
config initial commit 14 hours ago
docs initial commit 14 hours ago
src [feature] form ;layout => vertical 3 hours ago
.editorconfig initial commit 14 hours ago
.env.development [feature] 添加环境变量 13 hours ago
.env.production [feature] 添加环境变量 13 hours ago
.env.test initial commit 14 hours ago
.eslintrc initial commit 14 hours ago
.gitignore initial commit 14 hours ago
README.md initial commit 14 hours ago
babel.config.js initial commit 14 hours ago
package.json initial commit 14 hours ago
project.config.json initial commit 14 hours ago

README.md

jf_202506

介绍

202506小程序交付

软件架构

taro react

依赖工具

项目启动

  1. node > ver.18
  2. 安装yarn@1.22.19,执行yarn install
  3. 执行npm run dev:h5,本地启动
  4. 执行npm run build:h5,打包编译

项目部署

  1. 本地构建

    // 1. git 操作拉取项目,此处省略...
    // 2. 进入到项目根目录
    yarn install
    // 3. 编译构建
    npm run build:h5
    
  2. 登录宝塔平台

  3. 网站/HTML项目 下 添加HTML项目

    image-20250708103317051

  4. 修改nginx配置文件

    image-20250708103453330

        location ^~/api {
             proxy_set_header X-Real-IP $remote_addr;
             proxy_set_header REMOTE-HOST $remote_addr;
             proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    
             proxy_http_version 1.1;
             proxy_set_header Connection '';
    
             proxy_buffering off;
             proxy_cache off;
    
             proxy_read_timeout 86400s;
             send_timeout 86400s;
    
             client_max_body_size 50m;
    
         # 这里改成 [对应的域名 + /api]
             proxy_pass https://he.lehuonianhua.com/api;
         }
    
  5. 上传生产包

    image-20250708104053513

  6. 重启nginx

    image-20250708104244826

讨论

联系人:jinech 13478707150@163.com