1.0.9 • Published 3 years ago
ocm-deployer v1.0.9
OcmDeployer
OcmDeployer 小厘云前端项目的部署工具
Install
$ npm install ocm-deployer
Usage
const Deployer = require('deployer')
const dep = new Deployer({
accessKeyId: "",//亚马逊配置
secretAccessKey: "",//亚马逊配置
bucket:'',//亚马逊配置
key:'', //亚马逊桶中的路径 如 /test/123
dir:'dist', //带部署项目的本地目录
serverPath:'', // 项目在服务器www目录下的路径 www/serverPath
keyPath:'', // 本机上存放服务器的私钥的路径
serverIP:'', //服务器的IP
ip:'',//本机ip
port:''//本机port
});
// isDemo 是否为测试环境
//true:即在key 和serverPath后自动添加demo后缀
//默认false
dep.push(isDemo)