Aliyun deployer plugin for Hexo.
$ npm install hexo-deployer-aliyun --save
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)>
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.
- 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