node-msdeploy
v1.0.0
Published
Simplified Node.js interface for MsDeploy (Windows platform only)
Downloads
12
Maintainers
Readme
Node MsDeploy
Simplified Node.js interface for MsDeploy (Windows platform only)
Install NPM
npm install node-msdeploy --save
Usage
Setup deployment on Microsoft Azure AppService
// Import module
let NodeMsDeploy = require('node-msdeploy');
// Define deploy options (ex. Azure App Service)
let deployOptions = {
computerName : 'my-app.scm.azurewebsites.net',
site: 'my-app',
protocol: 'https',
port: 443,
userName: '$my-app',
password: 'my-supersecret-password123!',
authType: 'Basic',
packageFile: 'C:\\folder\\subfolder\\zip-with-application.zip'
};
// Initialize deployer
let deployer = new NodeMsDeploy(deployOptions);
// Launch deployment and handle promise
deployer.execute().then(
// Success
() => {
console.log('Deployment completed!');
},
// Error
(err) => {
console.log('Deployment failed with error ' + err);
}
);