ocm-deployer

1.0.9 • Public • Published

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)

Readme

Keywords

none

Package Sidebar

Install

npm i ocm-deployer

Weekly Downloads

10

Version

1.0.9

License

ISC

Unpacked Size

14.4 kB

Total Files

8

Last publish

Collaborators

  • zjyzooo