Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.87 KB

README.md

File metadata and controls

46 lines (32 loc) · 1.87 KB

Ember-cli-deploy-azure-blob

Deploy assets from Ember App to Azure Blob using ember-cli-deploy.

+

See ember-cli-deploy-azure for a plugin pack for Azure Tables, Azure Blob & the default build and hashing included.

Installation

  • npm install ember-cli-deploy-azure-blob
  • npm install ember-cli-deploy-build (or another ember-cli-deploy build tool)

Configuration

In your config/deploy.js file:

module.exports = function(environment) {
  var ENV = {};

  if (environment === 'production') {
    ENV["azure-blob"] = {
      storageAccount: "my-storage-account",
      storageAccessKey: "my-access-key",
      containerName: "my-container-name" // defaults to 'emberdeploy'
    };
  }

  return ENV;
}

Connection String

You can also connect using your connection string, set it as connectionString: "my-connection-string".

Gzip Support

If you're using ember-cli-deploy-gzip to automatically compress your assets using gzip, this plugin will automatically detect files that have been gzipped and set the proper Content-Encoding header within Azure Blob Storage.

Fingerprinting

Setup the fingerprint prepend url in your ember-cli-build.js file to point to your blob container. This will ensure the index.html references the asset with absolute urls and will work regardless of relative folder structure.

Usage

  • ember deploy <environment> to build and upload all assets to the Azure Blob