zs1621 / hexo-deployer-aliyun

Upload hexo resource to aliyun

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hexo-deployer-aliyun

Aliyun deployer plugin for Hexo.

Installation

$ npm install hexo-deployer-aliyun --save

Options

You can configure this plugin in _config.yml.

# You can use this:
deploy:
  type: aliyun
  bucket: <yourBucketName>
  region: <yourOSSregion>
  accessKeyId: <yourAccessKeyId>
  accessKeySecret: <yourAccessKeySecret>
  timeout: <timeout(defaut 60s)>

Known Issues

Aliyun only finds index.html in root. This is detail

So you must set full url in your hexo blog codes like /archives/index.html except the root path.

Unit Test

  • SET Aliyun OSS ENV (OSS_BUCKET ...) IN .env file
OSS_BUCKET   -> REQUIRED
OSS_REGION   -> REQUIRED
OSS_ACCESSKEYID  -> REQUIRED
OSS_ACCESSKEYSECRET -> REQUIRED
OSS_TIMEOUT  -> OPTIONAL
  • mocha test
npm install
mocha

About

Upload hexo resource to aliyun

License:GNU General Public License v3.0


Languages

Language:JavaScript 100.0%