
Product
Socket Now Supports pylock.toml Files
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
azure-deploy
Advanced tools
This module allows to deploy an application, e.g. a node application or a single page application written in Angular.js into an Azure WebSite. The module relies on the Git based deployment of Azure WebSite and can easily used also for other services with a git backend.
In addition this module supports deployment of files into an Azure Storage account which is often used as backend for static web sites.
The module will be integrated in the project structure via node package manager. The following command installs and save it as development dependency:
npm install azure-deploy --saveDev
The module offers a couple simple to use classes which can be used as follows:
Include the module in a specific application:
var azureDeploy = require('azure-deploy');
Define the source folder which needs to be deployed to the Azure WebSite:
var sourceFolder = 'YOUR SOURCE FOLDER';
Instantiate the Deployment-Manager which orchestrates everything:
var deploymentManager = new azureDeploy.AzureWebSiteDeploymentManager(
'Azure WebSite Name', 'Azure Deployment UserName', 'Azure Deployment Password');
The deployment manager can be used to perform a deployment from a specific source directory. The deploy method returns a promise which will be resolved as soon the deployment is finished:
deploymentManager.deploy(sourceFolder).then(function() {
// DONE
}).catch(function(error) {
// ERROR
});
The module offers a couple simple to use classes which can be used as follows:
Include the module in a specific application:
var azureDeploy = require('azure-deploy');
Define the source folder which needs to be deployed to the Azure WebSite:
var sourceFolder = 'YOUR SOURCE FOLDER';
Instantiate the Deployment-Manager which orchestrates everything:
var deploymentManager = new azureDeploy.AzureStorageDeploymentManager(
'AzureStorageKey', 'AzureStorageSecret', 'AzureStorageContainer');
The deployment manager can be used to perform a deployment from a specific source directory. The deploy method returns a promise which will be resolved as soon the deployment is finished:
deploymentManager.deploy(sourceFolder).then(function() {
// DONE
}).catch(function(error) {
// ERROR
});
The module offers a couple simple to use classes which can be used as follows:
Include the module in a specific application:
var azureDeploy = require('azure-deploy');
Define the source folder which needs to be deployed to the Azure WebSite:
var sourceFolder = 'YOUR SOURCE FOLDER';
Instantiate the Deployment-Manager which orchestrates everything:
var deploymentManager = new azureDeploy.AzureGitDeploymentManager(
'URL to GitRepo', 'Git Repo UserName', 'Git Repo Password');
The deployment manager can be used to perform a deployment from a specific source directory. The deploy method returns a promise which will be resolved as soon the deployment is finished:
deploymentManager.deploy(sourceFolder).then(function() {
// DONE
}).catch(function(error) {
// ERROR
});
The Git Deployment Manager is using a shallow copy of the target Git-Repository. To Prevent this initialize it as follows:
var deploymentManager = new azureDeploy.AzureGitDeploymentManager(
'URL to GitRepo', 'Git Repo UserName', 'Git Repo Password', { gitCloneOptions: { noShallowCopy: true }});
The node module can be integrated in an existing Gruntfile very easily. The following code fragment demonstrates an integration approach:
grunt.registerMultiTask('azureDeploy', 'Deploys the current build to an Azure Website.', function() {
var sourceFolder = appConfig.dist;
var deploymentManager = new azureDeploy.AzureWebSiteDeploymentManager(
this.data.azureWebSiteName,
this.data.azureDeploymentCredentialUserName,
this.data.azureDeploymentCredentialPassword
);
grunt.log.writeln('Starting deployment...');
var done = this.async();
deploymentManager.deploy(sourceFolder)
.then(function() {
grunt.log.writeln('Deployment to Azure Website finished successfully.');
done();
})
.catch(function() {
grunt.log.writeln('Deployment to azure website finished with errors.');
done(false);
})
}
FAQs
A module the deploy azure websites
The npm package azure-deploy receives a total of 32 weekly downloads. As such, azure-deploy popularity was classified as not popular.
We found that azure-deploy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.
Research
Security News
Malicious Ruby gems typosquat Fastlane plugins to steal Telegram bot tokens, messages, and files, exploiting demand after Vietnam’s Telegram ban.