Skip to content

My-Azure-Projects/azure-node-deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A small package to work with Azure's storage container. It allows to upload and delete files from blob or file shares containers.

API

deployBlob

Usually is used for deploying static files, such as FE part of the application.

const { deployBlob } = require('azure-node-deploy');

deployBlob({
  connectionString, // string to connect to specific storage container
  storageName = '$web', // specific storageName
  from = './', // the path to the target folder we going to deploy from
});

deployShareFile

Usually is used for deploying functions. To use it you need to create a specific storage during the function creation process.

const { deployShareFile } = require('azure-node-deploy');

deployShareFile({
  connectionString, // string to connect to specific storage container
  storageName = null, // spicific storage name to deploy to. Keep null to auto getting storage name. Could be usefull if the storage's used only as function's files storage.
  from = './', // the path to the target folder we going to deploy from
  to = './site/wwwroot/', // the path to the target folder we going to deploy from
});

About

A small package to upload files to azure storage containers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published