THIS PROJECT HAS MOVED TO https://odibpas.visualstudio.com/CDT%20Website%20Integrations/_git/bpa-azure
This project contains scripts for tasks in Azure.
This will show how to get the project running for production mode. Follow these same instructions for any other environments, replacing production
with the environment name (such as development).
- Install the package using
npm install --save bpa-azure
- Copy the
.env.sample
file to.env.production
- Fill out any publicly available environment variables (NO SECRETS SUCH AS API KEYS HERE!) in
.env.production
- If there are any secrets being used, such as
DEPLOY_ACCOUNT_KEY
, copy the.env.sample
file to.env.production.local
- Make sure your
.gitignore
contains.env.production.local
. There will be sensitive data present that should not be commited to a repository. - Fill out any private variables in
.env.production.local
(secrets such as API keys should go here) - Add a script in the
package.json
, such as for deploying:
"scripts": {
"deploy:prod": "bpa-azure deploy --env=production"
}
- Running
npm run deploy:prod
should now compress and deploy the file(s) targeted in.env.production
or.env.production.local
The following commands are available:
- deploy
- Compress and deploy a file or files in a folder to Azure Blob Storage
- remove-hash
- Removes hash values from the filename of files in a folder