# infrastructure-as-template **Repository Path**: devsapp/infrastructure-as-template ## Basic Information - **Project Name**: infrastructure-as-template - **Description**: 使用模板管理基础设施进行多环境部署 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-10-27 - **Last Updated**: 2022-01-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 组件说明 多环境模板化部署组件 ## 使用场景 ## 前置条件 安装最新的s 工具 ``` npm i @serverless-devs/s -g ``` 检查s版本,对照local 和 remote 是否是最新 ``` s -v ``` ## 快速开始 ### 1.安装依赖 ``` cd && npm i ``` ### 2.监听编译 ``` npm run watch ``` ### 3.执行测试 #### build ``` cd example/singlefunction && s build ``` ### init environment ``` cd example/singlefunction && s env init --name env-testing --filename .env/testing.yaml ``` #### deploy ``` cd example/singlefunction && s deploy --env=env-testing --overlays='{"memorySize": 256, "timeout": 120, "publish": true}' ```