1.0.0 • Published 5 years ago
simple-scp v1.0.0
simple-scp
simple scp tool based on scp2.
Installation
yarn install simple-scp
Example
const SCP = require('simple-scp');
const serverConfig = {
test: {
host: '1.2.3.4',
port: 22,
username: 'root',
password: '123456'
},
prod: {
host: '1.2.3.4',
port: 22,
username: 'root',
password: '123456'
}
};
const deploy = new SCP(serverConfig.test);
deploy.dest('dist', '/usr/share/nginx/html/admin/');
1.0.0
5 years ago