diff --git a/lib/deployer.js b/lib/deployer.js index 5b02b79..421c89f 100644 --- a/lib/deployer.js +++ b/lib/deployer.js @@ -31,7 +31,8 @@ module.exports = function(args) { help += ' [aws_secret]: # Optional, if provided as environment variable\n'; help += ' [concurrency]: \n'; help += ' [region]: # See https://github.com/LearnBoost/knox#region\n', - help += ' [headers]: # Optional, see README.md file\n\n'; + help += ' [headers]: # Optional, see README.md file\n'; + help += ' [prefix]: # Optional, prefix ending in /\n\n'; help += 'For more help, you can check the docs: ' + chalk.underline('https://github.com/nt3rp/hexo-deployer-s3'); console.log(help); @@ -42,7 +43,8 @@ module.exports = function(args) { localDir: publicDir, deleteRemoved: true, s3Params: xtend({ - Bucket: args.bucket + Bucket: args.bucket, + Prefix: args.prefix },customHeaders) }