1.1.1 • Published 11 months ago
@yimou6/tci v1.1.1
@yimou6/tci
一个前端打包后发布到lunix特定文件夹下的工具
install
npm install @yimou6/tci
use
流程:读取本地目录
->
ssh连接远程服务->
清除远程服务器目录->
上传文件->
完成
- 1、在项目根目录下新建配置文件
tciConfig.json
- 2、在
tciConfig.json
写入配置
{
"host": "127.0.0.1", // 远程lunix服务器地址
"port": 22, // 端口
"user": "root", // 服务器用户名
"password": "123", // 服务器密码
"local": "./dist", // 本地文件目录
"remote": "/usr/local/web/dist" // 远程目录
}
- 在
package.json
中加入配置
{
"scripts": {
"tci": "tci --c tciConfig.json"
}
}