simple-sftp-deploy
Advanced tools
Comparing version 0.1.2 to 0.2.0
@@ -1,5 +0,5 @@ | ||
const start = require('./src/start') | ||
const deploy = require('./src/deploy') | ||
module.exports = { | ||
start | ||
deploy | ||
} |
{ | ||
"name": "simple-sftp-deploy", | ||
"version": "0.1.2", | ||
"version": "0.2.0", | ||
"description": "deploy project with ssh2-sftp-client", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -18,3 +18,3 @@ # simple-sftp-deploy | ||
const path = require('path') | ||
ssd.start({ | ||
ssd.deploy({ | ||
is_bak: true, // 是否备份 | ||
@@ -21,0 +21,0 @@ remote_path: '/data/webapps/xxx',//服务器项目根路径 |
const registConf = function({ remote_path, assets_path, is_bak = false, host, port = '22', user, password }) { | ||
return { | ||
remote_path, //服务器项目根路径 | ||
assets_path, //存放编译之后资源文件夹 此项目需同_config.yml的public_dir值一样 Vue项目为./dist | ||
remote_path, // 服务器项目根路径 | ||
assets_path, // 存放编译之后资源文件夹 此项目需同_config.yml的public_dir值一样 Vue项目为./dist | ||
options: { | ||
host, //ftp服务器ip | ||
port, //端口 | ||
user, //ftp用户名 | ||
password, //ftp密码 | ||
host, // ftp服务器ip | ||
port, // 端口 | ||
user, // ftp用户名 | ||
password, // ftp密码 | ||
// privateKey: fs.readFileSync("C:/Users/laisf/.ssh/id_rsa"), // 私钥 | ||
passphrase: '' // 私钥密码(为空) | ||
passphrase: '' // 私钥密码(为空) | ||
}, | ||
is_bak, // 是否备份, 默认不备份 | ||
project_remote_path: remote_path, //项目服务器路径 | ||
public_asset_path: assets_path //指定需要上传的文件夹目录 | ||
project_remote_path: remote_path, // 项目服务器路径 | ||
public_asset_path: assets_path // 指定需要上传的文件夹目录 | ||
} | ||
@@ -17,0 +17,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7443
156
1