Skip to content

he9qi/ember-deploy-alioss

Repository files navigation

Ember Deploy Alioss

Build Status Code Climate Ember Observer

This is the alioss-adapter implementation to use 阿里云对象存储 aliyun oss with ember-deploy

Version

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.

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-alioss

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!

About

Ember-Deploy assets-adapter for Aliyun OSS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •