我按照此指南为使用grunt-s3的ember-js应用程序设置了亚马逊s3上传过程:http : //www.octolabs.com/blogs/octoblog/2014/05/24/deploying-ember-cli-to -amazon-s3-with-grunt /
我注意到在ubuntu服务器中挂载s3文件系统时,所有文件的权限模式均为000。
我想要具有644权限的文件。如何实现?
在我的grunt.js文件的选项部分中,添加了“ x-amz-meta-mode”:“ 33188”
options: {
key: '<%= aws.AWSAccessKeyId %>',
secret: '<%= aws.AWSSecretKey %>',
bucket: '<%= aws.bucket %>',
access: 'public-read',
headers: {
// Two Year cache policy (1000 * 60 * 60 * 24 * 730)
"Cache-Control": "max-age=630720000, public",
"x-amz-meta-mode": "33188",
"Expires": new Date(Date.now() + 63072000000).toUTCString()
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句