@nrk/ps-static-file-uploader
v2.2.3
Published
Publish static files to Azure blob store
Downloads
54
Maintainers
Keywords
Readme
static-file-uploader
⚠️ This is an internal tool used by the TV web team @ NRK
The package is public only for ease of use withnpx
in CI
settings so we dont have to providenpx --userconfig <.npmrc>
Simple NodeJS cli tool for uploading static files in a directory to Azure Blob storage
Usage
Typical use case for node apps in the PS.Web
repo, use npx
in npm script
and be explicit about the version (@1.0.x
)
{
"scripts": {
"deploy": "npx @nrk/[email protected] --uploadDirPath=<path to local dir> --remoteFolderName=<Folder name in Azure Blob storage>"
}
}
The connection string to the Azure Blob storage is read from env['BLOB_CONNECTION_STRING']
. The url to the Azure Blob storage is read from env['BLOB_STORE_URL']
,
Set deployFeatureBranch
to true to deploy other branches than master
Display help
> npx @nrk/ps-static-file-uploader -h