night-kay-cli
night-kay cli工具
yarn add night-kay-cli --dev
night-kay-cli deploy
将gitlab上的apps部署到目标目录,要求app项目里有对应的build tar包
night-kay-cli deploy 配置文件
配置文件
示例
{
"token": "",
"apps": [
{
"name": "relation",
"projectId": 1008
}
]
}
- token: gitlab private token
- sourceServer?: 默认https://dev.dingxiang-inc.com
- targetDir?: 部署目录,默认build/apps
- apps
- name: app目录名
- projectId: gitlab上项目ID
- branch?: 代码分支,默认master
- tar?: build文件压缩包,默认build.tar.gz