ember-deploy-alioss
v0.0.2
Published
Ember-Deploy assets-adapter for Aliyun OSS
Downloads
4
Maintainers
Readme
Ember Deploy Alioss
This is the alioss-adapter implementation to use 阿里云对象存储 aliyun oss with ember-deploy.
Installation
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-alisso
Aliyun OSS Policy Requirements
Make sure to enable your bucket's ACL to public read.
Setup
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();
};
Contributing
PRs welcome!