Deploy assets from Ember App to Azure Blob using ember-cli-deploy
JavaScript HTML
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
addon
app
config
tests
vendor
.bowerrc
.editorconfig
.ember-cli
.gitignore
.jshintrc
.npmignore
.travis.yml
.watchmanconfig
LICENSE.md
README.md
bower.json
ember-cli-build.js
index.js
package.json
testem.json

README.md

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