build-and-deploy-production.md 899 B

简化的生产环境构建和部署流程,执行npm构建命令生成生产版本的H5应用,然后将构建产物复制到远程Linux服务器。该工作流只包含核心的构建和复制操作。

Build and Deploy Production Process - Detailed Sequence of Steps

1. Execute Build Command

  1. Use the execute_command tool to run the production build:

    npm run h5_for_production
    

2. Copy Build Artifacts to Remote Server

  1. Use the execute_command tool to copy files to remote server:

    scp -r dist/h5/* ccos@192.168.110.112:/home/ccos/dros/linux-arm64-unpacked/h5/
    

3. Complete Workflow

  1. Use the attempt_completion tool to present the final results showing the execution status of both commands.