# dabai_wx **Repository Path**: webkixi/dabai_wx ## Basic Information - **Project Name**: dabai_wx - **Description**: 大白微信项目 - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2016-08-30 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 多环境支持 多环境支持,应对静态、数据、生产、源码压缩等不同的环境 ### 开发部署 开发部署用于本地开发用,方便调试,支持watch,热部署... #### 本地开发: ``` ./ly dev // 默认配置 ./ly dev test //启动 configs/test 配置 ./ly dev env_1 //启动 configs/env_1 配置 ./ly dev env_2 //启动 configs/env_2 配置 ./ly dev env_xxx //启动 configs/env_xxx 配置 ``` #### 本地开发仿生产: ``` ./ly pro // 默认配置 ./ly pro test //启动 configs/test 配置 ./ly pro env_1 //启动 configs/env_1 配置 ./ly pro env_2 //启动 configs/env_2 配置 ./ly pro env_xxx //启动 configs/env_xxx 配置 ``` ### 生产部署 生产部署用于各种生产环境,如开发、测试、准生产,生产。。。。,为适用各种环境,请写好各种环境配置 ``` pm2 start index.js -i 4 // 默认配置 pm2 start index.js -i 4 -- test //启动 configs/test 配置 pm2 start index.js -i 4 -- env_1 //启动 configs/env_1 配置 pm2 start index.js -i 4 -- env_2 //启动 configs/env_2 配置 pm2 start index.js -i 4 -- env_xxx //启动 configs/env_xxx 配置 ```