Skip to content

duizendnegen/ember-cli-deploy-azure-blob

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
app
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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'
      folderPrefix: "myapp" // useful if your app has a non-empty rootURL. defaults to ''
    };
  }

  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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published