Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

simple-sftp-deploy

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-sftp-deploy - npm Package Compare versions

Comparing version 0.1.2 to 0.2.0

src/deploy.js

4

index.js

@@ -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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc