This is the alioss-adapter implementation to use 阿里云对象存储 aliyun oss with ember-deploy
This plugin is for Ember Cli Deploy version v0.4.x. If you need version v0.5.x. Please checkout https://github.com/he9qi/ember-cli-deploy-alioss.
You also need dependencies ember-deploy and an index adapter such as ember-deploy-redis or ember-deploy-s3-index, etc.
ember install ember-deploy-aliossMake sure to enable your bucket's ACL to public read.

In deploy.js, set environment as
// ...
assets: {
type: 'alioss',
bucket: '<your-bucket-name>',
accessKeyId: process.env.ALIOSS_KEY,
secretAccessKey: process.env.ALIOSS_SECRET,
}Add fingerprint prepend in ember-cli-build.js
// ...
module.exports = function(defaults) {
var app = new EmberApp(defaults, {
fingerprint: {
prepend: '//<your-bucket-name>.oss-cn-hangzhou.aliyuncs.com/'
}
});
return app.toTree();
};PRs welcome!