0.3.0 • Published 6 years ago
ssh-deploy-webpack-plugin v0.3.0
Usage
const Deploy = require('ssh-deploy-webpack-plugin');
plugins: [
new Deploy(opt);
],
opt:
- user
- psd
- host
- port(optional)
- from
- to
- zipname(optional)
- afterDeployCLI(optional)
Example
const Deploy = require('ssh-deploy-webpack-plugin');
module.exports = merge(config, {
plugins: [
new Deploy({
user: 'user',
psd: 'password',
host: 'x.x.x.x',
port: 22, // String | Number
from: ['web', 'server/node'], // String | Array
to: '/data/app/test', // String
afterDeployCLI: 'sudo nginx -s reload' // String
})
],
})