This package has been deprecated

Author message:

WARNING: This project has been renamed to ember-cli-deploy-azure. Install using ember-cli-deploy-azure instead.

ember-deploy-azure

0.0.10 • Public • Published

Ember-deploy-azure

This is the azure-adapter implementation to use both Azure Tables & CDN with ember-cli-deploy.

Installation & usage

  • npm install ember-cli-deploy ember-deploy-azure --save-dev
  • update deploy.json to feature azure-adapters (see below)

Accessing the index uploaded by index-adapter

Server-side multiple strategies are possible to serve the index.html-file.

Configuring deployment

Both the index-adapter and the asset-adapter are specified by using a type: 'azure' configuration.

A container name can be specified in your deploy.js file by using the containerName property. If no container name is specified, it will default to emberdeploy.

See below an example script featuring staging & production.

staging: {
    buildEnv: 'staging',
    store: {
      type: 'azure',
      storageAccount: "my-storage-account",
      storageAccessKey: "my-access-key"
    },
    assets: {
      type: 'azure',
      gzip: false,
      storageAccount: "my-storage-account",
      storageAccessKey: "my-access-key"
      containerName: 'myapp-staging'
    }
  },
 
  production: {
    store: {
      type: 'azure',
      storageAccount: "my-storage-account",
      storageAccessKey: "my-access-key"
    },
    assets: {
      type: 'azure',
      gzip: false,
      storageAccount: "my-storage-account",
      storageAccessKey: "my-access-key"
      containerName: 'myapp-prod'
    }
  }
 

Accessing the assets, using a CDN

Files are uploaded to https://<STORAGE_NAME>.blob.core.windows.net/[CONTAINER_NAME]/<FILENAME>. A CDN can be pointed to this blob.

Be sure to use the right fingerprinting to appropriately request the deployed assets: http://www.ember-cli.com/asset-compilation/ - this can either be https://<STORAGE_NAME>.blob.core.windows.net/[CONTAINER_NAME]/ or http://<CDN>.vo.msecnd.net/[CONTAINER_NAME]/

Readme

Keywords

Package Sidebar

Install

npm i ember-deploy-azure

Weekly Downloads

10

Version

0.0.10

License

MIT

Last publish

Collaborators

  • duizendnegen