node-msdeploy

1.0.0 • Public • Published

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); 
    }
);

Package Sidebar

Install

npm i node-msdeploy

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

9.79 kB

Total Files

5

Last publish

Collaborators

  • maurobussini