atm0-deploy

0.0.1 • Public • Published

atm0-deploy

var deploy = require('atm0-deploy');
var path = require('path');
deploy({
    type: 'scp',
    force: true,
    src: path.join(__dirname, 'testdir'),
    //replace to the absolute path on your server
    dest: '/remote/server/absolute/path/to',
    exclusions: ['**/ignore.txt','**/.DS_Store', '**/Thumbs.db'],
    auth: {
        host: '***.***.***.***',
        username: '****',
        password: '********'
    }
}, function (err) {
    if (err) {
        throw err;
    }
    console.log('upload ok');
});

Readme

Keywords

Package Sidebar

Install

npm i atm0-deploy

Weekly Downloads

1

Version

0.0.1

License

ISC

Last publish

Collaborators

  • vaseala.com