简化的生产环境构建和部署流程,执行npm构建命令生成生产版本的H5应用,然后将构建产物复制到远程Linux服务器。该工作流只包含核心的构建和复制操作。
Use the execute_command
tool to run the production build:
npm run h5_for_production
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/
attempt_completion
tool to present the final results showing the execution status of both commands.