xm-post-ftp

0.1.5 • Public • Published

说明

ftp/sftp配置

/cfg/autoftpconfig.js配置:

module.exports = {
  "host": "115.28.187.30",
  "user": "shanghaitao",
  "password": "shanghaitao",
  "remoteSource": "/data1/node/frontend_car_service_13353"
};

命令模式

npm run postftp sftp /page/bundle

接口模式

var postftp = require('xm-post-ftp');
postftp({
  path: '/page/bundle',
  mode: 'sftp'
}, function() {
  console.log('POST END');
});

Readme

Keywords

none

Package Sidebar

Install

npm i xm-post-ftp

Weekly Downloads

1

Version

0.1.5

License

ISC

Unpacked Size

20.8 kB

Total Files

4

Last publish

Collaborators

  • 10line