Socket
Socket
Sign inDemoInstall

simple-sftp-deploy

Package Overview
Dependencies
17
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    simple-sftp-deploy

deploy project with ssh2-sftp-client


Version published
Weekly downloads
16
increased by33.33%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

simple-sftp-deploy

Usage

  • 引入
npm install simple-sftp-deploy -S
or
yarn add simple-sftp-deploy
  • 使用
const ssd = require('simple-sftp-deploy')
const path = require('path')
ssd.deploy({
  is_bak: true, // 是否备份
  remote_path: '/data/webapps/xxx',//服务器项目根路径
  assets_path: path.resolve(__dirname,'./dist'),//编译后资源文件夹名称(需上传的文件夹)
  host: 'xxx.xxx.xxx.xxx',//ftp服务器ip
  port: '22',//端口,可不填(默认22)
  user: 'username',//ftp用户名
  password: 'password'//ftp密码
})

Keywords

FAQs

Last updated on 15 Nov 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc