Skip to content

Commit

Permalink
updated README to provide instruction on how to specify a container name
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesdixon committed Jun 26, 2015
1 parent 414c85c commit bb33b7d
Showing 1 changed file with 38 additions and 2 deletions.
40 changes: 38 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,43 @@ https://gist.github.com/duizendnegen/85b5c4a7b7eef28f0756

## Accessing the assets / using a CDN

Files are uploaded to `https://<STORAGE_NAME>.blob.core.windows.net/emberdeploy/<FILENAME>`.
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_. Here's a simple example:

```javascript
staging: {
buildEnv: 'staging',
store: {
type: 'redis',
host: '192.168.99.100',
port: 6379
},
assets: {
type: 'azure',
gzip: false,
storageAccount: process.env.AZURE_STORAGE_ACCOUNT_NAME,
storageAccessKey: process.env.AZURE_STORAGE_ACCESS_KEY,
containerName: 'myapp-staging'
}
},

production: {
store: {
type: 'redis',
host: '192.168.99.100', // ip address of your redis docker container
port: 6379
},
assets: {
type: 'azure',
gzip: false,
storageAccount: process.env.AZURE_STORAGE_ACCOUNT_NAME,
storageAccessKey: process.env.AZURE_STORAGE_ACCESS_KEY,
containerName: 'myapp-prod'
}
}

```

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/emberdeploy/` or `http://<CDN>.vo.msecnd.net/emberdeploy/`
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]/`

0 comments on commit bb33b7d

Please sign in to comment.